修改数据可视化登录跳转页面
This commit is contained in:
parent
e8df736d40
commit
0526231290
|
@ -15,14 +15,12 @@ class VisualController extends Zend_Controller_Action
|
|||
array('link'=>'/data','title'=>$this->view->config->title->data),
|
||||
);
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
if(view::User() === false)
|
||||
{
|
||||
$user = $auth->getIdentity();
|
||||
$this->uid = $user->id;
|
||||
}else{
|
||||
$this->_redirect('/account/login?href=/visual');
|
||||
view::Post($this,"请先登陆",'/account/login?href='.urlencode($_SERVER['REQUEST_URI']));
|
||||
}
|
||||
|
||||
$this->uid = view::User('id');
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
|
|
Loading…
Reference in New Issue