From 60da9b5ea6d8c2276ef003f7685cc980bca5a7ac Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Mon, 30 Sep 2013 02:00:43 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E8=87=AA=E5=8A=A8=E8=B7=B3=E8=BD=AC=E7=9A=84=E9=93=BE?= =?UTF-8?q?=E6=8E=A5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/AccountController.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/application/default/controllers/AccountController.php b/application/default/controllers/AccountController.php index b101a897..40dd9b20 100755 --- a/application/default/controllers/AccountController.php +++ b/application/default/controllers/AccountController.php @@ -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 } } - } + } //找回密码 + }