Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | if ($ex instanceof PhabricatorSystemActionRateLimitException) { | ||||
$response = new AphrontDialogResponse(); | $response = new AphrontDialogResponse(); | ||||
$response->setDialog($dialog); | $response->setDialog($dialog); | ||||
return $response; | return $response; | ||||
} | } | ||||
if ($ex instanceof PhabricatorAuthHighSecurityRequiredException) { | if ($ex instanceof PhabricatorAuthHighSecurityRequiredException) { | ||||
$form = id(new PhabricatorAuthSessionEngine())->renderHighSecurityForm( | $form = id(new PhabricatorAuthSessionEngine())->renderHighSecurityForm( | ||||
$ex->getFactors(), | |||||
$ex->getFactorValidationResults(), | |||||
$user, | $user, | ||||
$request); | $request); | ||||
$dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
->setUser($user) | ->setUser($user) | ||||
->setTitle(pht('Entering High Security')) | ->setTitle(pht('Entering High Security')) | ||||
->setShortTitle(pht('Security Checkpoint')) | ->setShortTitle(pht('Security Checkpoint')) | ||||
->setWidth(AphrontDialogView::WIDTH_FORM) | ->setWidth(AphrontDialogView::WIDTH_FORM) | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |