diff options
| author | André Noack <noack@data-quest.de> | 2024-01-19 15:01:50 +0000 |
|---|---|---|
| committer | André Noack <noack@data-quest.de> | 2024-01-19 15:01:50 +0000 |
| commit | 9a8dea57f09fbc7abfaeaa52cffb8bdbfada7007 (patch) | |
| tree | 172ab63143d3531a970713d77ca6edb816108273 /templates/_standard_loginform.php | |
| parent | f08b210916d91afc38f663eeff70c0689e4c9362 (diff) | |
Resolve #3605 "Barriere in der Nutzung des Login-Formulars"
Closes #3605
Merge request studip/studip!2531
Diffstat (limited to 'templates/_standard_loginform.php')
| -rw-r--r-- | templates/_standard_loginform.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/templates/_standard_loginform.php b/templates/_standard_loginform.php index 0a8be59..a300cb6 100644 --- a/templates/_standard_loginform.php +++ b/templates/_standard_loginform.php @@ -6,6 +6,8 @@ use Studip\Button; * @var bool $hidden * @var string $uname; */ +$username_tooltip_text = (string)Config::get()->USERNAME_TOOLTIP_TEXT; +$password_tooltip_text = (string)Config::get()->PASSWORD_TOOLTIP_TEXT; ?> <form class="default <?= $hidden ? 'hide' : '' ?>" @@ -18,8 +20,8 @@ use Studip\Button; <section> <label> <span class="required"><?= _('Benutzername') ?></span> - <? if (Config::get()->USERNAME_TOOLTIP_ACTIVATED) : ?> - <?= tooltipIcon(htmlReady((string)Config::get()->USERNAME_TOOLTIP_TEXT)) ?> + <? if ($username_tooltip_text) : ?> + <?= tooltipIcon($username_tooltip_text) ?> <? endif ?> <input type="text" <?= (mb_strlen($uname) || $hidden) ? '' : 'autofocus' ?> id="loginname" @@ -28,17 +30,18 @@ use Studip\Button; size="20" spellcheck="false" autocapitalize="off" - title="<?= _('Der Benutzername entspricht nicht den Anforderungen') ?>" + autocomplete="username" required> </label> <label for="password" style="position: relative"> <span class="required"><?= _('Passwort') ?></span> - <? if (Config::get()->PASSWORD_TOOLTIP_ACTIVATED) : ?> - <?= tooltipIcon(htmlReady((string)Config::get()->PASSWORD_TOOLTIP_TEXT)) ?> + <? if ($password_tooltip_text) : ?> + <?= tooltipIcon($password_tooltip_text) ?> <? endif ?> <input type="password" <?= mb_strlen($uname) && !$hidden ? 'autofocus' : '' ?> id="password" name="password" + autocomplete="current-password" size="20" required> |
