mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +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:
@@ -24,7 +24,7 @@ class AdminerLoginOtp {
|
|||||||
if ($name == 'password') {
|
if ($name == 'password') {
|
||||||
return $heading . $value
|
return $heading . $value
|
||||||
. "<tr><th><acronym title='One Time Password' lang='en'>OTP</acronym>"
|
. "<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"
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user