Реализовано автоматическое обновление алгоритма хэширования пароля во время авторизации пользователя

This commit is contained in:
ErickSkrauch
2016-05-23 22:42:50 +03:00
parent 3d6d9d484c
commit fe2c422621
3 changed files with 38 additions and 18 deletions

View File

@ -28,19 +28,4 @@ class AccountsChangeEmailInitializeCest {
]);
}
public function testChangeEmailWithOldPasswordStrategy(FunctionalTester $I) {
$I->wantTo('see, that account use old account password hash strategy');
$I->loggedInAsActiveAccount('AccWithOldPassword', '12345678');
$this->route->changeEmailInitialize('password_0');
$I->canSeeResponseCodeIs(200);
$I->canSeeResponseIsJson();
$I->canSeeResponseContainsJson([
'success' => false,
'errors' => [
'email' => 'error.old_hash_strategy',
],
]);
}
}