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/service/user.php | |
parent | 9f8486c87cd81cdb888b8e518f0d3eb50b6abbb9 (diff) |
Add invitation key deletion
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/service/user.php')
-rw-r--r-- | application/service/user.php | 11 |
1 files changed, 11 insertions, 0 deletions
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(); + } } |