CC-3110 : Password reset

added sender email to preferences form, created db upgrade script.
This commit is contained in:
Naomi Aro 2012-04-05 14:18:42 +02:00
parent cf2813a545
commit 0b3809c379
9 changed files with 79 additions and 20 deletions

View file

@ -56,7 +56,7 @@ class AuthController extends Zend_Controller_Action
//check validity of token
if (!$auth->checkToken($user_id, $token, 'password.restore')) {
echo "token not valid";
//$this->_helper->redirector('index', 'login');
$this->_helper->redirector('index', 'login');
}
if ($request->isPost() && $form->isValid($request->getPost())) {
@ -82,7 +82,7 @@ class AuthController extends Zend_Controller_Action
$authStorage = $zend_auth->getStorage();
$authStorage->write($userInfo);
$this->_helper->redirector('index', 'nowplaying');
$this->_helper->redirector('index', 'showbuilder');
}
$this->view->form = $form;