1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

AdminerLoginOtp: Autocomplete hints for OTP input field, code refactoring

Tanks to SGCBB (https://github.com/vrana/adminer/pull/488)
This commit is contained in:
Peter Knut
2024-09-06 23:31:04 +02:00
committed by Jakub Vrana
parent b6f9f58712
commit 2189947c43

View File

@@ -24,7 +24,7 @@ class AdminerLoginOtp {
if ($name == 'password') {
return $heading . $value
. "<tr><th><acronym title='One Time Password' lang='en'>OTP</acronym>"
. "<td><input type='number' name='auth[otp]' value='" . h($_SESSION["otp"]) . "' size='6' autocomplete='off'>\n"
. "<td><input type='number' name='auth[otp]' value='" . h($_SESSION["otp"]) . "' size='6' autocomplete='one-time-code' inputmode='numeric' maxlength='6' pattern='\d{6}'>\n"
;
}
}