From 19416f384e2d957bd80a01d7fe6748d2f460bab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= <brousek@ics.muni.cz> Date: Wed, 23 Mar 2022 08:41:55 +0100 Subject: [PATCH] fix: bring back HTML fixes which were silently reverted in a merge commit introduced in ed15b6154bee98b7529e7c5affaba1c8599c5476 and reverted in 4070798566ed952c185670ddf2bf4540bbd3e7ce --- templates/LoginForm.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/LoginForm.php b/templates/LoginForm.php index 706941e..0ba5d5b 100644 --- a/templates/LoginForm.php +++ b/templates/LoginForm.php @@ -136,7 +136,10 @@ if (null !== $this->data['errorCode']) { placeholder="<?php echo htmlspecialchars($passHint, ENT_QUOTES); ?>"/> <strong id="message"><?php echo htmlspecialchars($this->data['message'] ?? '', ENT_QUOTES); ?></strong> - <br> + <br><br> + <label for="otp" class="sr-only"> + <?php echo $this->t('{privacyidea:privacyidea:otp}'); ?> + </label> <input id="otp" name="otp" type="password" placeholder="<?php echo htmlspecialchars($otpHint, ENT_QUOTES); ?>"> <br><br> @@ -226,10 +229,7 @@ if (null !== $this->data['errorCode']) { </div> <!-- form-panel --> <div id="AlternateLoginOptions" class="groupMargin"> - - <h3><label><?php echo $this->t('{privacyidea:privacyidea:alternate_login_options}'); ?></label></h3> - <br> - + <h3><?php echo $this->t('{privacyidea:privacyidea:alternate_login_options}'); ?></h3> <!-- Alternate Login Options--> <input id="useWebAuthnButton" name="useWebAuthnButton" type="button" value="WebAuthn"/> <input id="usePushButton" name="usePushButton" type="button" value="Push"/> -- GitLab