mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 14:51:06 +01:00
Autofocus the "App Code" input on the TOTP prompt during MFA gates after login
Summary: See downstream <https://phabricator.wikimedia.org/T229757>. The "autofocus" attribute mostly just works, so add it to this input. Test Plan: As a user with TOTP enabled, established a new session. Saw browser automatically focus the "App Code" input on the TOTP prompt screen. Differential Revision: https://secure.phabricator.com/D20703
This commit is contained in:
parent
46d9065bf1
commit
9bd74dfa6c
1 changed files with 1 additions and 0 deletions
|
@ -194,6 +194,7 @@ final class PhabricatorTOTPAuthFactor extends PhabricatorAuthFactor {
|
|||
$control = id(new PHUIFormNumberControl())
|
||||
->setName($name)
|
||||
->setDisableAutocomplete(true)
|
||||
->setAutofocus(true)
|
||||
->setValue($value)
|
||||
->setError($error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue