[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/auth/controller/ -> PhabricatorAuthNeedsApprovalController.php (source)

   1  <?php
   2  
   3  final class PhabricatorAuthNeedsApprovalController
   4    extends PhabricatorAuthController {
   5  
   6    public function shouldRequireLogin() {
   7      return false;
   8    }
   9  
  10    public function shouldRequireEmailVerification() {
  11      return false;
  12    }
  13  
  14    public function shouldRequireEnabledUser() {
  15      return false;
  16    }
  17  
  18    public function processRequest() {
  19      $request = $this->getRequest();
  20      $user = $request->getUser();
  21  
  22      $wait_for_approval = pht(
  23        "Your account has been created, but needs to be approved by an ".
  24        "administrator. You'll receive an email once your account is approved.");
  25  
  26      $dialog = id(new AphrontDialogView())
  27        ->setUser($user)
  28        ->setTitle(pht('Wait for Approval'))
  29        ->appendChild($wait_for_approval)
  30        ->addCancelButton('/', pht('Wait Patiently'));
  31  
  32      return $this->buildApplicationPage(
  33        $dialog,
  34        array(
  35          'title' => pht('Wait For Approval'),
  36        ));
  37    }
  38  
  39  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1