Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/factor/PhabricatorTOTPAuthFactor.php
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | $form->appendInstructions( | ||||
'code. Enter that code below to confirm that you have configured '. | 'code. Enter that code below to confirm that you have configured '. | ||||
'the authenticator correctly:')); | 'the authenticator correctly:')); | ||||
$form->appendChild( | $form->appendChild( | ||||
id(new PHUIFormNumberControl()) | id(new PHUIFormNumberControl()) | ||||
->setLabel(pht('TOTP Code')) | ->setLabel(pht('TOTP Code')) | ||||
->setName('totpcode') | ->setName('totpcode') | ||||
->setValue($code) | ->setValue($code) | ||||
->setAutofocus(true) | |||||
->setError($e_code)); | ->setError($e_code)); | ||||
} | } | ||||
protected function newIssuedChallenges( | protected function newIssuedChallenges( | ||||
PhabricatorAuthFactorConfig $config, | PhabricatorAuthFactorConfig $config, | ||||
PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
array $challenges) { | array $challenges) { | ||||
▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines |