fixed all tests

This commit is contained in:
Antonio Ramirez
2016-12-11 21:34:22 +01:00
parent 4588d77129
commit 4c9b9671b5
37 changed files with 214 additions and 135 deletions

View File

@ -41,11 +41,15 @@ class PasswordRecoveryService implements ServiceInterface
$this->mailService->setViewParam('user', $user);
$this->mailService->setViewParam('token', $token);
if (!$this->mailService->run()) {
return false;
}
Yii::$app->session->setFlash(
'info',
Yii::t('user', 'An email has been sent with instructions for resetting your password')
);
return true;
} catch (Exception $e) {