mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 10:52:41 +01:00
f74082aecd
Summary: Moves to PHUIObjectBox, removes old CSS Test Plan: Pull up 404 page. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D10578
24 lines
574 B
PHP
24 lines
574 B
PHP
<?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.'));
|
|
}
|
|
|
|
}
|