Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14892149
D20059.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20059.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 6:58 AM (4 h, 32 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7115105
Default Alt Text
D20059.diff (1 KB)
Attached To
Mode
D20059: Give MFA gates a more consistent UI
Attached
Detach File
Event Timeline
Log In to Comment