Differential D25218 Diff 755 src/applications/auth/controller/mfa/PhabricatorAuthFactorProviderViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/mfa/PhabricatorAuthFactorProviderViewController.php
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | $view = id(new PHUIPropertyListView()) | ||||
->setViewer($viewer); | ->setViewer($viewer); | ||||
$view->addProperty( | $view->addProperty( | ||||
pht('Factor Type'), | pht('Factor Type'), | ||||
$provider->getFactor()->getFactorName()); | $provider->getFactor()->getFactorName()); | ||||
$custom_enroll = $provider->getEnrollMessage(); | $custom_enroll = $provider->getEnrollMessage(); | ||||
if (strlen($custom_enroll)) { | if (phutil_nonempty_string($custom_enroll)) { | ||||
$view->addSectionHeader( | $view->addSectionHeader( | ||||
pht('Custom Enroll Message'), | pht('Custom Enroll Message'), | ||||
PHUIPropertyListView::ICON_SUMMARY); | PHUIPropertyListView::ICON_SUMMARY); | ||||
$view->addTextContent( | $view->addTextContent( | ||||
new PHUIRemarkupView($viewer, $custom_enroll)); | new PHUIRemarkupView($viewer, $custom_enroll)); | ||||
} | } | ||||
return $view; | return $view; | ||||
Show All 33 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0