Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90666277
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
Sun, Nov 3, 17:19
Size
703 B
Mime Type
text/x-php
Expires
Tue, Nov 5, 17:19 (2 d)
Engine
blob
Format
Raw Data
Handle
22113953
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