From 11ea08df8d4784aad4836852180098c45b90c5a2 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 18 May 2018 23:06:40 +0200 Subject: Add invitation key deletion Signed-off-by: Florian Pritz --- application/service/user.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'application/service/user.php') diff --git a/application/service/user.php b/application/service/user.php index bb0c44599..f7dfa5799 100644 --- a/application/service/user.php +++ b/application/service/user.php @@ -103,4 +103,15 @@ class user { return $key; } + + static public function delete_invitation_key($userid, $key) { + $CI =& get_instance(); + + $CI->db + ->where('key', $key) + ->where('user', $userid) + ->delete('actions'); + + return $CI->db->affected_rows(); + } } -- cgit v1.2.3-24-g4f1b