summaryrefslogtreecommitdiff
path: root/plugins/auth_internal
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-26 14:25:40 +0300
committerAndrew Dolgov <[email protected]>2021-02-26 14:25:40 +0300
commit167c9fc34ef323d1bbc99cf13094a122eac28e12 (patch)
treec78e0db672d9e9c8a87b3a206f8963a6b67ef254 /plugins/auth_internal
parente6a875b7e4e4b179284942878da452a8db8d9b50 (diff)
silence php8 warnings in otp secondary login form
Diffstat (limited to 'plugins/auth_internal')
-rw-r--r--plugins/auth_internal/init.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php
index 13a7bc969..eec506cfd 100644
--- a/plugins/auth_internal/init.php
+++ b/plugins/auth_internal/init.php
@@ -72,9 +72,10 @@ class Auth_Internal extends Auth_Base {
<input type="hidden" name="op" value="login">
<input type="hidden" name="login" value="<?= htmlspecialchars($login) ?>">
<input type="hidden" name="password" value="<?= htmlspecialchars($password) ?>">
- <input type="hidden" name="bw_limit" value="<?= htmlspecialchars($_POST["bw_limit"]) ?>">
- <input type="hidden" name="remember_me" value="<?= htmlspecialchars($_POST["remember_me"]) ?>">
- <input type="hidden" name="profile" value="<?= htmlspecialchars($_POST["profile"]) ?>">
+ <input type="hidden" name="bw_limit" value="<?= htmlspecialchars($_POST["bw_limit"] ?? "") ?>">
+ <input type="hidden" name="safe_mode" value="<?= htmlspecialchars($_POST["safe_mode"] ?? "") ?>">
+ <input type="hidden" name="remember_me" value="<?= htmlspecialchars($_POST["remember_me"] ?? "") ?>">
+ <input type="hidden" name="profile" value="<?= htmlspecialchars($_POST["profile"] ?? "") ?>">
<fieldset>
<label><?= __("Please enter your one time password:") ?></label>