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