aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-02-16 13:38:15 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-02-16 13:38:15 +0000
commit94960f72347aa217107e5a43cfe8cdd3584a48c0 (patch)
tree900e570a9bb9549bb3a7b7b7676331eb8bff7131 /templates
parent4a7b51b24e7e656a253df0b4be325edfda2235ef (diff)
fixes #3708
Closes #3708 Merge request studip/studip!2611
Diffstat (limited to 'templates')
-rw-r--r--templates/_standard_loginform.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/_standard_loginform.php b/templates/_standard_loginform.php
index 7174287..51fc53b 100644
--- a/templates/_standard_loginform.php
+++ b/templates/_standard_loginform.php
@@ -23,10 +23,10 @@ $password_tooltip_text = (string)Config::get()->PASSWORD_TOOLTIP_TEXT;
<? if ($username_tooltip_text) : ?>
<?= tooltipIcon($username_tooltip_text) ?>
<? endif ?>
- <input type="text" <?= (mb_strlen($uname) || $hidden) ? '' : 'autofocus' ?>
+ <input type="text" <?= (mb_strlen($uname ?? '') || $hidden) ? '' : 'autofocus' ?>
id="loginname"
name="loginname"
- value="<?= htmlReady($uname) ?>"
+ value="<?= htmlReady($uname ?? '') ?>"
size="20"
spellcheck="false"
autocapitalize="off"
@@ -38,7 +38,7 @@ $password_tooltip_text = (string)Config::get()->PASSWORD_TOOLTIP_TEXT;
<? if ($password_tooltip_text) : ?>
<?= tooltipIcon($password_tooltip_text) ?>
<? endif ?>
- <input type="password" <?= mb_strlen($uname) && !$hidden ? 'autofocus' : '' ?>
+ <input type="password" <?= mb_strlen($uname ?? '') && !$hidden ? 'autofocus' : '' ?>
id="password"
name="password"
autocomplete="current-password"