mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
6bbba1e315
Summary: [WIP] Tossing this up for safety and to read through it. Need to test, update some of the other flows. This updates everything in Auth for new UI and modern conventions. Test Plan: Loooots of random testing, new providers, edit providers, logging out, forgot password... more coming. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15550
24 lines
570 B
PHP
24 lines
570 B
PHP
<?php
|
|
|
|
final class PhabricatorDisabledUserController
|
|
extends PhabricatorAuthController {
|
|
|
|
public function shouldRequireEnabledUser() {
|
|
return false;
|
|
}
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
$viewer = $this->getViewer();
|
|
$id = $request->getURIData('id');
|
|
|
|
if (!$viewer->getIsDisabled()) {
|
|
return new Aphront404Response();
|
|
}
|
|
|
|
return $this->newDialog()
|
|
->setTitle(pht('Account Disabled'))
|
|
->addCancelButton('/logout/', pht('Okay'))
|
|
->appendParagraph(pht('Your account has been disabled.'));
|
|
}
|
|
|
|
}
|