summaryrefslogtreecommitdiffstats
path: root/application/service
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-05-18 23:06:40 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-05-18 23:10:31 +0200
commit11ea08df8d4784aad4836852180098c45b90c5a2 (patch)
tree390e3fc854aca566c51e303960bf113b8c18f8e7 /application/service
parent9f8486c87cd81cdb888b8e518f0d3eb50b6abbb9 (diff)
Add invitation key deletion
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/service')
-rw-r--r--application/service/user.php11
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();
+ }
}