xref: /dokuwiki/inc/Action/Register.php (revision f21dad3906d4ec6b3d86685599409894630abdc1)
1*f21dad39SAndreas Gohr<?php
2*f21dad39SAndreas Gohr/**
3*f21dad39SAndreas Gohr * Created by IntelliJ IDEA.
4*f21dad39SAndreas Gohr * User: andi
5*f21dad39SAndreas Gohr * Date: 2/11/17
6*f21dad39SAndreas Gohr * Time: 9:18 AM
7*f21dad39SAndreas Gohr */
8*f21dad39SAndreas Gohr
9*f21dad39SAndreas Gohrnamespace dokuwiki\Action;
10*f21dad39SAndreas Gohr
11*f21dad39SAndreas Gohruse dokuwiki\Action\Exception\ActionAbort;
12*f21dad39SAndreas Gohr
13*f21dad39SAndreas Gohrclass Register extends AbstractAction {
14*f21dad39SAndreas Gohr
15*f21dad39SAndreas Gohr    /** @inheritdoc */
16*f21dad39SAndreas Gohr    function minimumPermission() {
17*f21dad39SAndreas Gohr        return AUTH_NONE;
18*f21dad39SAndreas Gohr    }
19*f21dad39SAndreas Gohr
20*f21dad39SAndreas Gohr    public function preProcess() {
21*f21dad39SAndreas Gohr        if(register()) { // FIXME could be moved from auth to here
22*f21dad39SAndreas Gohr            throw new ActionAbort('login');
23*f21dad39SAndreas Gohr        }
24*f21dad39SAndreas Gohr    }
25*f21dad39SAndreas Gohr
26*f21dad39SAndreas Gohr    public function tplContent() {
27*f21dad39SAndreas Gohr        html_register();
28*f21dad39SAndreas Gohr    }
29*f21dad39SAndreas Gohr
30*f21dad39SAndreas Gohr}
31