Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/auth/controller/PhabricatorDisabledUserController.php
12256 views
1
<?php
2
3
final class PhabricatorDisabledUserController
4
extends PhabricatorAuthController {
5
6
public function shouldRequireEnabledUser() {
7
return false;
8
}
9
10
public function handleRequest(AphrontRequest $request) {
11
$viewer = $this->getViewer();
12
$id = $request->getURIData('id');
13
14
if (!$viewer->getIsDisabled()) {
15
return new Aphront404Response();
16
}
17
18
return $this->newDialog()
19
->setTitle(pht('Account Disabled'))
20
->addCancelButton('/logout/', pht('Okay'))
21
->appendParagraph(pht('Your account has been disabled.'));
22
}
23
24
}
25
26