Добавлено окно для валидации TOTP токена на формах входа и восстановления пароля

This commit is contained in:
ErickSkrauch 2017-02-22 01:20:43 +03:00
parent 0798faa7f1
commit 0eedfe91a2
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class ForgotPasswordForm extends ApiForm {
}
$validator = new TotpValidator(['account' => $account]);
$validator->window = 1;
$validator->validateAttribute($this, $attribute);
}

View File

@ -69,6 +69,7 @@ class LoginForm extends ApiForm {
}
$validator = new TotpValidator(['account' => $account]);
$validator->window = 1;
$validator->validateAttribute($this, $attribute);
}