Page MenuHomePhabricator

D20059.id47894.diff
No OneTemporary

D20059.id47894.diff

diff --git a/src/aphront/handler/PhabricatorHighSecurityRequestExceptionHandler.php b/src/aphront/handler/PhabricatorHighSecurityRequestExceptionHandler.php
--- a/src/aphront/handler/PhabricatorHighSecurityRequestExceptionHandler.php
+++ b/src/aphront/handler/PhabricatorHighSecurityRequestExceptionHandler.php
@@ -78,15 +78,13 @@
$form_layout = $form->buildLayoutView();
if ($is_upgrade) {
- $messages = array(
- pht(
- 'You are taking an action which requires you to enter '.
- 'high security.'),
- );
+ $message = pht(
+ 'You are taking an action which requires you to enter '.
+ 'high security.');
$info_view = id(new PHUIInfoView())
->setSeverity(PHUIInfoView::SEVERITY_MFA)
- ->setErrors($messages);
+ ->setErrors(array($message));
$dialog
->appendChild($info_view)
@@ -100,12 +98,18 @@
'period of time. When you are finished taking sensitive '.
'actions, you should leave high security.'));
} else {
+ $message = pht(
+ 'You are taking an action which requires you to provide '.
+ 'multi-factor credentials.');
+
+ $info_view = id(new PHUIInfoView())
+ ->setSeverity(PHUIInfoView::SEVERITY_MFA)
+ ->setErrors(array($message));
+
$dialog
+ ->appendChild($info_view)
->setErrors(
array(
- pht(
- 'You are taking an action which requires you to provide '.
- 'multi-factor credentials.'),
))
->appendChild($form_layout);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 10, 7:03 AM (4 h, 51 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7115105
Default Alt Text
D20059.id47894.diff (1 KB)

Event Timeline