CC-3416 : Create password reset form

This commit is contained in:
Naomi Aro 2012-04-20 16:10:27 +02:00
parent e242972a78
commit d5a416be43
5 changed files with 27 additions and 3 deletions

View file

@ -115,7 +115,7 @@ class LoginController extends Zend_Controller_Action
$auth = new Application_Model_Auth();
$auth->sendPasswordRestoreLink($user, $this->view);
$this->_helper->redirector('password-restore-after', 'auth');
$this->_helper->redirector('password-restore-after', 'login');
}
else {
$form->email->addError($this->view->translate("Given email not found."));
@ -146,7 +146,7 @@ class LoginController extends Zend_Controller_Action
//check validity of token
if (!$auth->checkToken($user_id, $token, 'password.restore')) {
echo "token not valid";
Logging::debug("token not valid");
$this->_helper->redirector('index', 'login');
}