mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Исправлен баг с валидатором ника в форме смены никнейма
This commit is contained in:
@@ -21,7 +21,7 @@ class ChangeUsernameForm extends PasswordProtectedForm {
|
||||
$account = new Account();
|
||||
$account->username = $this->$attribute;
|
||||
if (!$account->validate(['username'])) {
|
||||
$account->addErrors($account->getErrors('username'));
|
||||
$this->addErrors($account->getErrors());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user