mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52: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
37 lines
897 B
PHP
37 lines
897 B
PHP
<?php
|
|
|
|
final class PhabricatorAuthNeedsApprovalController
|
|
extends PhabricatorAuthController {
|
|
|
|
public function shouldRequireLogin() {
|
|
return false;
|
|
}
|
|
|
|
public function shouldRequireEmailVerification() {
|
|
return false;
|
|
}
|
|
|
|
public function shouldRequireEnabledUser() {
|
|
return false;
|
|
}
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
$viewer = $this->getViewer();
|
|
|
|
$wait_for_approval = pht(
|
|
"Your account has been created, but needs to be approved by an ".
|
|
"administrator. You'll receive an email once your account is approved.");
|
|
|
|
$dialog = id(new AphrontDialogView())
|
|
->setUser($viewer)
|
|
->setTitle(pht('Wait for Approval'))
|
|
->appendChild($wait_for_approval)
|
|
->addCancelButton('/', pht('Wait Patiently'));
|
|
|
|
return $this->newPage()
|
|
->setTitle(pht('Wait For Approval'))
|
|
->appendChild($dialog);
|
|
|
|
}
|
|
|
|
}
|