Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit b1d7037

Browse files
authored
fix: input type number for OTP
1 parent 8b25291 commit b1d7037

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

themes/perun/privacyidea/LoginForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<div class="form-row">
105105
<div class="form-group col-sm-12 col-md-6">
106106
<label for="otp" class="sr-only"><?php echo $this->t('{privacyidea:privacyidea:otp}'); ?></label>
107-
<input id="otp" name="otp" tabindex="1" value="" class="form-control" autocomplete="one-time-code" type="text" inputmode="numeric" pattern="[0-9]{6,}" required placeholder="<?php echo htmlspecialchars($otpHint, ENT_QUOTES); ?>"<?php if ($this->data['noAlternatives']) {
107+
<input id="otp" name="otp" tabindex="1" value="" class="form-control" autocomplete="one-time-code" type="number" inputmode="numeric" pattern="[0-9]{6,}" required placeholder="<?php echo htmlspecialchars($otpHint, ENT_QUOTES); ?>"<?php if ($this->data['noAlternatives']) {
108108
echo ' autofocus';
109109
} ?> />
110110
</div>

0 commit comments

Comments
 (0)