xref: /dokuwiki/inc/Action/Login.php (revision 64ab5140f7b1c996873fbfe9bab26d9202fbb773)
1<?php
2/**
3 * Created by IntelliJ IDEA.
4 * User: andi
5 * Date: 2/10/17
6 * Time: 12:08 PM
7 */
8
9namespace dokuwiki\Action;
10
11use dokuwiki\Action\Exception\ActionException;
12
13class Login extends AbstractAclAction {
14
15    /** @inheritdoc */
16    function minimumPermission() {
17        return AUTH_NONE;
18    }
19
20    /** @inheritdoc */
21    public function checkPermissions() {
22        global $INPUT;
23        parent::checkPermissions();
24        if($INPUT->server->has('REMOTE_USER')){
25            // nothing to do
26            throw new ActionException();
27        }
28        // FIXME auth login capabilities
29    }
30
31    /** @inheritdoc */
32    public function tplContent() {
33        html_login();
34    }
35
36}
37