Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92179636
PhabricatorAuthNeedsApprovalController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 18, 01:46
Size
885 B
Mime Type
text/x-php
Expires
Wed, Nov 20, 01:46 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22387940
Attached To
rPH Phabricator
PhabricatorAuthNeedsApprovalController.php
View Options
<?php
final
class
PhabricatorAuthNeedsApprovalController
extends
PhabricatorAuthController
{
public
function
shouldRequireLogin
()
{
return
false
;
}
public
function
shouldRequireEmailVerification
()
{
return
false
;
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$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
=
id
(
new
AphrontDialogView
())
->
setUser
(
$user
)
->
setTitle
(
pht
(
'Wait for Approval'
))
->
appendChild
(
$wait_for_approval
)
->
addCancelButton
(
'/'
,
pht
(
'Wait Patiently'
));
return
$this
->
buildApplicationPage
(
$dialog
,
array
(
'title'
=>
pht
(
'Wait For Approval'
),
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment