mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Внедрена валидация OTP в процесс восстановления пароля
This commit is contained in:
@@ -69,9 +69,7 @@ class LoginForm extends ApiForm {
|
||||
}
|
||||
|
||||
$validator = new TotpValidator(['account' => $account]);
|
||||
if (!$validator->validate($this->token, $error)) {
|
||||
$this->addError($attribute, $error);
|
||||
}
|
||||
$validator->validateAttribute($this, $attribute);
|
||||
}
|
||||
|
||||
public function validateActivity($attribute) {
|
||||
|
Reference in New Issue
Block a user