mirror of
https://github.com/elyby/accounts.git
synced 2026-10-20 20:58:03 +05:30
Поле token в контексте otp токенов переименовано в totp
This commit is contained in:
1 parent
2bdb79b43d
commit
2c08130f4e
16 files changed
+65
-63
No files matched your search
@@ -36,7 +36,7 @@ class AuthenticationForm extends ApiForm {
|
||||
$loginForm->password = $this->password;
|
||||
if (!$loginForm->validate()) {
|
||||
$errors = $loginForm->getFirstErrors();
|
||||
if (isset($errors['token'])) {
|
||||
if (isset($errors['totp'])) {
|
||||
Authserver::error("User with login = '{$this->username}' protected by two factor auth.");
|
||||
throw new ForbiddenOperationException('Account protected with two factor auth.');
|
||||
} elseif (isset($errors['login'])) {
|
||||
|
||||
Reference in new issue
Block a user