diff --git a/airtime_mvc/application/controllers/LoginController.php b/airtime_mvc/application/controllers/LoginController.php index fee77faac..043983ede 100644 --- a/airtime_mvc/application/controllers/LoginController.php +++ b/airtime_mvc/application/controllers/LoginController.php @@ -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'); } diff --git a/airtime_mvc/application/models/Auth.php b/airtime_mvc/application/models/Auth.php index 6e5cdb62c..fa2ab8bd3 100644 --- a/airtime_mvc/application/models/Auth.php +++ b/airtime_mvc/application/models/Auth.php @@ -16,6 +16,8 @@ class Application_Model_Auth { $info->setDbCreated(gmdate('Y-m-d H:i:s')); $info->save(); + Logging::debug("generated token {$token}"); + return $token; } diff --git a/airtime_mvc/application/views/scripts/form/password-change.phtml b/airtime_mvc/application/views/scripts/form/password-change.phtml index fdd380884..8214e67a5 100644 --- a/airtime_mvc/application/views/scripts/form/password-change.phtml +++ b/airtime_mvc/application/views/scripts/form/password-change.phtml @@ -8,6 +8,14 @@