diff --git a/api/models/authentication/ForgotPasswordForm.php b/api/models/authentication/ForgotPasswordForm.php index a947f82..051decb 100644 --- a/api/models/authentication/ForgotPasswordForm.php +++ b/api/models/authentication/ForgotPasswordForm.php @@ -51,6 +51,7 @@ class ForgotPasswordForm extends ApiForm { } $validator = new TotpValidator(['account' => $account]); + $validator->window = 1; $validator->validateAttribute($this, $attribute); } diff --git a/api/models/authentication/LoginForm.php b/api/models/authentication/LoginForm.php index 044c4ee..3b6e463 100644 --- a/api/models/authentication/LoginForm.php +++ b/api/models/authentication/LoginForm.php @@ -69,6 +69,7 @@ class LoginForm extends ApiForm { } $validator = new TotpValidator(['account' => $account]); + $validator->window = 1; $validator->validateAttribute($this, $attribute); }