From 0eedfe91a2f563f95e2a965a7ffc59bc773fe5fc Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 22 Feb 2017 01:20:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BE=D0=BA=D0=BD=D0=BE=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0=D1=86=D0=B8=D0=B8=20TOTP?= =?UTF-8?q?=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD=D0=B0=20=D0=BD=D0=B0=20=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D0=B0=D1=85=20=D0=B2=D1=85=D0=BE=D0=B4=D0=B0?= =?UTF-8?q?=20=D0=B8=20=D0=B2=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B0=D1=80=D0=BE?= =?UTF-8?q?=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/models/authentication/ForgotPasswordForm.php | 1 + api/models/authentication/LoginForm.php | 1 + 2 files changed, 2 insertions(+) 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); }