mirror of
https://github.com/elyby/accounts.git
synced 2026-11-26 09:03:27 +05:30
Исправлен баг с валидатором ника в форме смены никнейма
This commit is contained in:
1 parent
085869f2bc
commit
a69cd2da2c
2 files changed
+18
-2
No files matched your search
@@ -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