[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

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

   1  <?php
   2  
   3  final class PhabricatorDisabledUserController
   4    extends PhabricatorAuthController {
   5  
   6    public function shouldRequireEnabledUser() {
   7      return false;
   8    }
   9  
  10    public function processRequest() {
  11      $request = $this->getRequest();
  12      $user = $request->getUser();
  13      if (!$user->getIsDisabled()) {
  14        return new Aphront404Response();
  15      }
  16  
  17      return id(new AphrontDialogView())
  18        ->setUser($user)
  19        ->setTitle(pht('Account Disabled'))
  20        ->addCancelButton('/logout/', pht('Okay'))
  21        ->appendParagraph(pht('Your account has been disabled.'));
  22    }
  23  
  24  }


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