From 0ae8cbf5c0b1a198b963490985b7738392ebcb97 Mon Sep 17 00:00:00 2001 From: ahriman Date: Mon, 3 Dec 2018 19:22:25 -0500 Subject: installed dokuwiki, added to navbar, updated news --- wiki/inc/Action/Register.php | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 wiki/inc/Action/Register.php (limited to 'wiki/inc/Action/Register.php') diff --git a/wiki/inc/Action/Register.php b/wiki/inc/Action/Register.php new file mode 100644 index 0000000..0d54158 --- /dev/null +++ b/wiki/inc/Action/Register.php @@ -0,0 +1,45 @@ +canDo('addUser')) throw new ActionDisabledException(); + } + + /** @inheritdoc */ + public function preProcess() { + if(register()) { // FIXME could be moved from auth to here + throw new ActionAbort('login'); + } + } + + /** @inheritdoc */ + public function tplContent() { + html_register(); + } + +} -- cgit 1.4.1-2-gfad0