summaryrefslogtreecommitdiff
path: root/plugins/auth_internal
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-06 00:12:15 +0300
committerAndrew Dolgov <[email protected]>2021-02-06 00:12:15 +0300
commit6e774a58fe6c509e2cd16d222ed414edc9f10b17 (patch)
treeb6a6d054677596b3ef79e806a44f7f8931dd84d6 /plugins/auth_internal
parent403dca154c6b539de221f9e16174a0fdd0a1e896 (diff)
more php8 fixes mostly related to login
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 0ad3e9436..134d3b45e 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 = (int)$_REQUEST["otp"];
+ $otp = (int) ($_REQUEST["otp"] ?? 0);
if (get_schema_version() > 96) {