mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Упразднён контроллер PasswordProtectedController и заменён на валидатор PasswordRequiredValidator
Реорганизованы тесты для ChangeUsernameFormTest
This commit is contained in:
@@ -89,7 +89,7 @@ class Account extends ActiveRecord {
|
||||
* @return bool if password provided is valid for current user
|
||||
* @throws InvalidConfigException
|
||||
*/
|
||||
public function validatePassword($password, $passwordHashStrategy = NULL) {
|
||||
public function validatePassword($password, $passwordHashStrategy = NULL) : bool {
|
||||
if ($passwordHashStrategy === NULL) {
|
||||
$passwordHashStrategy = $this->password_hash_strategy;
|
||||
}
|
||||
|
Reference in New Issue
Block a user