Fixed password reset and account activation

This commit is contained in:
Marcin Kurczewski 2014-03-02 18:47:28 +01:00
parent 2af8a941ff
commit b9a50f9e14

View file

@ -552,7 +552,7 @@ class UserController
public function activationAction($token) public function activationAction($token)
{ {
$this->context->viewName = 'message'; $this->context->viewName = 'message';
LayoutHelper::setSubTitle('account activation'); CustomAssetViewDecorator::setSubTitle('account activation');
$dbToken = TokenModel::findByToken($token); $dbToken = TokenModel::findByToken($token);
TokenModel::checkValidity($dbToken); TokenModel::checkValidity($dbToken);
@ -585,7 +585,7 @@ class UserController
public function passwordResetAction($token) public function passwordResetAction($token)
{ {
$this->context->viewName = 'message'; $this->context->viewName = 'message';
LayoutHelper::setSubTitle('password reset'); CustomAssetViewDecorator::setSubTitle('password reset');
$dbToken = TokenModel::findByToken($token); $dbToken = TokenModel::findByToken($token);
TokenModel::checkValidity($dbToken); TokenModel::checkValidity($dbToken);
@ -619,7 +619,7 @@ class UserController
public function passwordResetProxyAction() public function passwordResetProxyAction()
{ {
$this->context->viewName = 'user-select'; $this->context->viewName = 'user-select';
LayoutHelper::setSubTitle('password reset'); CustomAssetViewDecorator::setSubTitle('password reset');
if (InputHelper::get('submit')) if (InputHelper::get('submit'))
{ {
@ -639,7 +639,7 @@ class UserController
public function activationProxyAction() public function activationProxyAction()
{ {
$this->context->viewName = 'user-select'; $this->context->viewName = 'user-select';
LayoutHelper::setSubTitle('account activation'); CustomAssetViewDecorator::setSubTitle('account activation');
if (InputHelper::get('submit')) if (InputHelper::get('submit'))
{ {