🤖 Rector and PHPCS fixes
[dokuwiki.git] / inc / Action / Login.php
blob6d3d1240778bd97b2655e6013d6d174ddd3643ff
1 <?php
3 namespace dokuwiki\Action;
5 use dokuwiki\Action\Exception\ActionException;
6 use dokuwiki\Ui;
8 /**
9 * Class Login
11 * The login form. Actual logins are handled in inc/auth.php
13 * @package dokuwiki\Action
15 class Login extends AbstractAclAction
17 /** @inheritdoc */
18 public function minimumPermission()
20 return AUTH_NONE;
23 /** @inheritdoc */
24 public function checkPreconditions()
26 global $INPUT;
27 parent::checkPreconditions();
28 if ($INPUT->server->has('REMOTE_USER')) {
29 // nothing to do
30 throw new ActionException();
34 /** @inheritdoc */
35 public function tplContent()
37 (new Ui\Login())->show();