diff --git a/src/applications/auth/factor/PhabricatorTOTPAuthFactor.php b/src/applications/auth/factor/PhabricatorTOTPAuthFactor.php --- a/src/applications/auth/factor/PhabricatorTOTPAuthFactor.php +++ b/src/applications/auth/factor/PhabricatorTOTPAuthFactor.php @@ -194,6 +194,7 @@ $control = id(new PHUIFormNumberControl()) ->setName($name) ->setDisableAutocomplete(true) + ->setAutofocus(true) ->setValue($value) ->setError($error); }