Differential D21778 Diff 51915 src/applications/auth/controller/PhabricatorAuthNeedsMultiFactorController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthNeedsMultiFactorController.php
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | if ($viewer->getIsEnrolledInMultiFactor()) { | ||||
->addCancelButton('/', pht('Continue')); | ->addCancelButton('/', pht('Continue')); | ||||
} | } | ||||
$views = array(); | $views = array(); | ||||
$messages = array(); | $messages = array(); | ||||
$messages[] = pht( | $messages[] = pht( | ||||
'Before you can use Phabricator, you need to add multi-factor '. | 'Before you can use this software, you need to add multi-factor '. | ||||
'authentication to your account. Multi-factor authentication helps '. | 'authentication to your account. Multi-factor authentication helps '. | ||||
'secure your account by making it more difficult for attackers to '. | 'secure your account by making it more difficult for attackers to '. | ||||
'gain access or take sensitive actions.'); | 'gain access or take sensitive actions.'); | ||||
$view = id(new PHUIInfoView()) | $view = id(new PHUIInfoView()) | ||||
->setTitle(pht('Add Multi-Factor Authentication To Your Account')) | ->setTitle(pht('Add Multi-Factor Authentication To Your Account')) | ||||
->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ||||
->setErrors($messages); | ->setErrors($messages); | ||||
Show All 37 Lines |