diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-01-30 22:31:11 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-01-30 22:31:11 +0100 |
commit | f8ac2f6582001bfa3b42ac4fbdc77ff97137a8f8 (patch) | |
tree | cc6979a56bd458546582b7da3c69bf0ec5f8af82 /application/controllers | |
parent | e8d30fa25470f3912c0d4e8629fc7b764aae1c72 (diff) |
Modularize authentication system
This allows to easily add LDAP and other support.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/user.php | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |