Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F538805
PhabricatorAuthNeedsApprovalController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorAuthNeedsApprovalController.php
View Options
<?php
final
class
PhabricatorAuthNeedsApprovalController
extends
PhabricatorAuthController
{
public
function
shouldRequireLogin
()
{
return
false
;
}
public
function
shouldRequireEmailVerification
()
{
return
false
;
}
public
function
shouldRequireEnabledUser
()
{
return
false
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$instructions
=
$this
->
newCustomWaitForApprovalInstructions
();
$wait_for_approval
=
pht
(
"Your account has been created, but needs to be approved by an "
.
"administrator. You'll receive an email once your account is approved."
);
$dialog
=
$this
->
newDialog
()
->
setTitle
(
pht
(
'Wait for Approval'
))
->
appendChild
(
$wait_for_approval
)
->
addCancelButton
(
'/'
,
pht
(
'Wait Patiently'
));
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addTextCrumb
(
pht
(
'Wait For Approval'
))
->
setBorder
(
true
);
return
$this
->
newPage
()
->
setTitle
(
pht
(
'Wait For Approval'
))
->
setCrumbs
(
$crumbs
)
->
appendChild
(
array
(
$instructions
,
$dialog
,
));
}
private
function
newCustomWaitForApprovalInstructions
()
{
$viewer
=
$this
->
getViewer
();
$text
=
PhabricatorAuthMessage
::
loadMessageText
(
$viewer
,
PhabricatorAuthWaitForApprovalMessageType
::
MESSAGEKEY
);
if
(!
phutil_nonempty_string
(
$text
))
{
return
null
;
}
$remarkup_view
=
new
PHUIRemarkupView
(
$viewer
,
$text
);
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'auth-custom-message'
,
),
$remarkup_view
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 8:56 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
108437
Default Alt Text
PhabricatorAuthNeedsApprovalController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment