diff options
author | Andrew Dolgov <[email protected]> | 2021-03-12 07:32:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-12 07:32:15 +0300 |
commit | 4949e1a59059d9e72ba7a98f783cec312c06c6d2 (patch) | |
tree | 4da10119134b212f32a23a8683c2f91f9f4f3ce7 /plugins/auth_internal | |
parent | 146b1e0feb861cd55fef317fe3f52ea974ead87d (diff) |
valid OTP code should not be enough to login, oops
Diffstat (limited to 'plugins/auth_internal')
-rw-r--r-- | plugins/auth_internal/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php index 9155f8165..e63263a5d 100644 --- a/plugins/auth_internal/init.php +++ b/plugins/auth_internal/init.php @@ -50,7 +50,7 @@ class Auth_Internal extends Auth_Base { return false; } */ - if (UserHelper::check_otp($user_id, $otp)) + if ($this->check_password($user_id, $password) && UserHelper::check_otp($user_id, $otp)) return $user_id; else return false; |