2011-05-12 19:06:54 +02:00
|
|
|
<?php
|
|
|
|
|
2012-03-10 00:46:25 +01:00
|
|
|
final class PhabricatorDisabledUserController
|
|
|
|
extends PhabricatorAuthController {
|
2011-05-12 19:06:54 +02:00
|
|
|
|
|
|
|
public function shouldRequireEnabledUser() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function processRequest() {
|
|
|
|
$request = $this->getRequest();
|
|
|
|
$user = $request->getUser();
|
|
|
|
if (!$user->getIsDisabled()) {
|
|
|
|
return new Aphront404Response();
|
|
|
|
}
|
|
|
|
|
2014-09-27 02:40:09 +02:00
|
|
|
return id(new AphrontDialogView())
|
|
|
|
->setUser($user)
|
|
|
|
->setTitle(pht('Account Disabled'))
|
|
|
|
->addCancelButton('/logout/', pht('Okay'))
|
|
|
|
->appendParagraph(pht('Your account has been disabled.'));
|
2011-05-12 19:06:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|