修改了登录后自动跳转的链接.
This commit is contained in:
parent
737a967a51
commit
60da9b5ea6
|
@ -306,7 +306,12 @@ class AccountController extends Zend_Controller_Action
|
||||||
|
|
||||||
if(($options['module']=="default" && $options['controller'] == "account" && $options['action'] == "login"))
|
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))
|
if(!empty($tohref))
|
||||||
|
@ -364,7 +369,6 @@ class AccountController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!empty($tohref))
|
if(!empty($tohref))
|
||||||
{
|
{
|
||||||
view::Post($this,"登录成功,正在跳转",$tohref);
|
view::Post($this,"登录成功,正在跳转",$tohref);
|
||||||
|
@ -592,6 +596,7 @@ class AccountController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} //找回密码
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue