From f8ac2f6582001bfa3b42ac4fbdc77ff97137a8f8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 30 Jan 2013 22:31:11 +0100 Subject: Modularize authentication system This allows to easily add LDAP and other support. Signed-off-by: Florian Pritz --- application/controllers/user.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application/controllers/user.php') diff --git a/application/controllers/user.php b/application/controllers/user.php index 1562ae9fd..50eb1b363 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -74,6 +74,7 @@ class User extends CI_Controller { function create_invitation_key() { + $this->duser->require_implemented("can_register_new_users"); $this->muser->require_access(); $userid = $this->muser->get_userid(); @@ -103,6 +104,7 @@ class User extends CI_Controller { function invite() { + $this->duser->require_implemented("can_register_new_users"); $this->muser->require_access(); $userid = $this->muser->get_userid(); @@ -123,6 +125,7 @@ class User extends CI_Controller { function register() { + $this->duser->require_implemented("can_register_new_users"); $key = $this->uri->segment(3); $process = $this->input->post("process"); $values = array( @@ -195,6 +198,7 @@ class User extends CI_Controller { // This routes the different steps of a password reset function reset_password() { + $this->duser->require_implemented("can_reset_password"); $key = $this->uri->segment(3); if ($_SERVER["REQUEST_METHOD"] == "GET" && $key === false) { -- cgit v1.2.3-24-g4f1b