summaryrefslogtreecommitdiff
path: root/plugins/auth_internal
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-17 16:50:34 +0300
committerAndrew Dolgov <[email protected]>2020-09-17 16:50:34 +0300
commitd8619b9a84be8dcfd2f218a498f6f82f18f14033 (patch)
tree37b0520e5a1dfaec95eeb882ed4971e027dffefc /plugins/auth_internal
parentc25edd00243893615b63994e761a05445f7b5fe7 (diff)
auth_internal: cast OTP code to integer before trying to check it
Diffstat (limited to 'plugins/auth_internal')
-rw-r--r--plugins/auth_internal/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php
index d029e249e..0ad3e9436 100644
--- a/plugins/auth_internal/init.php
+++ b/plugins/auth_internal/init.php
@@ -22,7 +22,7 @@ class Auth_Internal extends Plugin implements IAuthModule {
$pwd_hash1 = encrypt_password($password);
$pwd_hash2 = encrypt_password($password, $login);
- $otp = $_REQUEST["otp"];
+ $otp = (int)$_REQUEST["otp"];
if (get_schema_version() > 96) {