mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Теперь на этапе включения TOTP код может истечь в течение 2 периодов
This commit is contained in:
@@ -18,7 +18,7 @@ class EnableTwoFactorAuthForm extends AccountActionForm {
|
||||
return [
|
||||
['account', 'validateOtpDisabled'],
|
||||
['totp', 'required', 'message' => E::TOTP_REQUIRED],
|
||||
['totp', TotpValidator::class, 'account' => $this->getAccount()],
|
||||
['totp', TotpValidator::class, 'account' => $this->getAccount(), 'window' => 2],
|
||||
['password', PasswordRequiredValidator::class, 'account' => $this->getAccount()],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user