Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94041268
PhabricatorDisabledUserController.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
Tue, Dec 3, 10:59
Size
703 B
Mime Type
text/x-php
Expires
Thu, Dec 5, 10:59 (2 d)
Engine
blob
Format
Raw Data
Handle
22720182
Attached To
rPH Phabricator
PhabricatorDisabledUserController.php
View Options
<?php
final
class
PhabricatorDisabledUserController
extends
PhabricatorAuthController
{
public
function
shouldRequireEnabledUser
()
{
return
false
;
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
if
(!
$user
->
getIsDisabled
())
{
return
new
Aphront404Response
();
}
$failure_view
=
new
AphrontRequestFailureView
();
$failure_view
->
setHeader
(
pht
(
'Account Disabled'
));
$failure_view
->
appendChild
(
phutil_tag
(
'p'
,
array
(),
pht
(
'Your account has been disabled.'
)));
return
$this
->
buildStandardPageResponse
(
$failure_view
,
array
(
'title'
=>
pht
(
'Account Disabled'
),
));
}
}
Event Timeline
Log In to Comment