diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-05-18 23:06:40 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-05-18 23:10:31 +0200 |
commit | 11ea08df8d4784aad4836852180098c45b90c5a2 (patch) | |
tree | 390e3fc854aca566c51e303960bf113b8c18f8e7 /application/controllers | |
parent | 9f8486c87cd81cdb888b8e518f0d3eb50b6abbb9 (diff) |
Add invitation key deletion
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/User.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/application/controllers/User.php b/application/controllers/User.php index a2ce5c823..26704f3e5 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -133,6 +133,18 @@ class User extends MY_Controller { redirect("user/invite"); } + function delete_invitation_key() + { + $this->duser->require_implemented("can_register_new_users"); + $this->muser->require_access(); + + $userid = $this->muser->get_userid(); + $key = $this->input->post("key"); + + \service\user::delete_invitation_key($userid, $key); + redirect("user/invite"); + } + function invite() { $this->duser->require_implemented("can_register_new_users"); |