修改了登录后自动跳转的链接.

This commit is contained in:
Li Jianxuan 2013-09-30 02:00:43 +00:00
parent 737a967a51
commit 60da9b5ea6
1 changed files with 10 additions and 5 deletions

View File

@ -294,7 +294,7 @@ class AccountController extends Zend_Controller_Action
'controller' => $this->_request->getControllerName(),
'action' => $this->_request->getActionName(),
);
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity())
{
@ -306,7 +306,12 @@ class AccountController extends Zend_Controller_Action
if(($options['module']=="default" && $options['controller'] == "account" && $options['action'] == "login"))
{
$this->view->href = '/';
$this->view->href = $_SERVER['REQUEST_URI'];
}
if($tohref == "/account/login")
{
$this->view->href = $tohref = "/";
}
if(!empty($tohref))
@ -364,13 +369,12 @@ class AccountController extends Zend_Controller_Action
}
else
{
if(!empty($tohref))
{
view::Post($this,"登录成功,正在跳转",$tohref);
return true;
}
if($options['module']=="default" && $options['controller'] == "account" && $options['action'] == "login")
{
view::Post($this,"登录成功,正在跳转",'/');
@ -592,6 +596,7 @@ class AccountController extends Zend_Controller_Action
}
}
}
} //找回密码
}