Skip to content
Snippets Groups Projects
Commit 94960f72 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3708

Closes #3708

Merge request studip/studip!2611
parent 4a7b51b2
No related branches found
No related tags found
No related merge requests found
...@@ -23,10 +23,10 @@ $password_tooltip_text = (string)Config::get()->PASSWORD_TOOLTIP_TEXT; ...@@ -23,10 +23,10 @@ $password_tooltip_text = (string)Config::get()->PASSWORD_TOOLTIP_TEXT;
<? if ($username_tooltip_text) : ?> <? if ($username_tooltip_text) : ?>
<?= tooltipIcon($username_tooltip_text) ?> <?= tooltipIcon($username_tooltip_text) ?>
<? endif ?> <? endif ?>
<input type="text" <?= (mb_strlen($uname) || $hidden) ? '' : 'autofocus' ?> <input type="text" <?= (mb_strlen($uname ?? '') || $hidden) ? '' : 'autofocus' ?>
id="loginname" id="loginname"
name="loginname" name="loginname"
value="<?= htmlReady($uname) ?>" value="<?= htmlReady($uname ?? '') ?>"
size="20" size="20"
spellcheck="false" spellcheck="false"
autocapitalize="off" autocapitalize="off"
...@@ -38,7 +38,7 @@ $password_tooltip_text = (string)Config::get()->PASSWORD_TOOLTIP_TEXT; ...@@ -38,7 +38,7 @@ $password_tooltip_text = (string)Config::get()->PASSWORD_TOOLTIP_TEXT;
<? if ($password_tooltip_text) : ?> <? if ($password_tooltip_text) : ?>
<?= tooltipIcon($password_tooltip_text) ?> <?= tooltipIcon($password_tooltip_text) ?>
<? endif ?> <? endif ?>
<input type="password" <?= mb_strlen($uname) && !$hidden ? 'autofocus' : '' ?> <input type="password" <?= mb_strlen($uname ?? '') && !$hidden ? 'autofocus' : '' ?>
id="password" id="password"
name="password" name="password"
autocomplete="current-password" autocomplete="current-password"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment