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();
|
|
|
|
}
|
|
|
|
|
|
|
|
$failure_view = new AphrontRequestFailureView();
|
2013-01-27 01:17:44 +01:00
|
|
|
$failure_view->setHeader(pht('Account Disabled'));
|
2013-02-13 23:50:15 +01:00
|
|
|
$failure_view->appendChild(phutil_tag('p', array(), pht(
|
|
|
|
'Your account has been disabled.')));
|
2011-05-12 19:06:54 +02:00
|
|
|
|
|
|
|
return $this->buildStandardPageResponse(
|
|
|
|
$failure_view,
|
|
|
|
array(
|
2013-01-27 01:17:44 +01:00
|
|
|
'title' => pht('Account Disabled'),
|
2011-05-12 19:06:54 +02:00
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|