Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119720662
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
Sat, Jun 28, 21:55
Size
574 B
Mime Type
text/x-php
Expires
Mon, Jun 30, 21:55 (2 d)
Engine
blob
Format
Raw Data
Handle
27054623
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
();
}
return
id
(
new
AphrontDialogView
())
->
setUser
(
$user
)
->
setTitle
(
pht
(
'Account Disabled'
))
->
addCancelButton
(
'/logout/'
,
pht
(
'Okay'
))
->
appendParagraph
(
pht
(
'Your account has been disabled.'
));
}
}
Event Timeline
Log In to Comment