Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthController.php
Show First 20 Lines • Show All 276 Lines • ▼ Show 20 Lines | abstract class PhabricatorAuthController extends PhabricatorController { | ||||
final protected function newCustomStartMessage() { | final protected function newCustomStartMessage() { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$text = PhabricatorAuthMessage::loadMessageText( | $text = PhabricatorAuthMessage::loadMessageText( | ||||
$viewer, | $viewer, | ||||
PhabricatorAuthLoginMessageType::MESSAGEKEY); | PhabricatorAuthLoginMessageType::MESSAGEKEY); | ||||
if (!strlen($text)) { | if (!phutil_nonempty_string($text)) { | ||||
return null; | return null; | ||||
} | } | ||||
$remarkup_view = new PHUIRemarkupView($viewer, $text); | $remarkup_view = new PHUIRemarkupView($viewer, $text); | ||||
return phutil_tag( | return phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'auth-custom-message', | 'class' => 'auth-custom-message', | ||||
), | ), | ||||
$remarkup_view); | $remarkup_view); | ||||
} | } | ||||
} | } |
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