diff options
author | Philip Häusler <msquare@notrademark.de> | 2015-12-30 15:48:41 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2015-12-30 15:48:41 +0100 |
commit | ef60b955555ea1d22da8494a34440c3fd2d8b190 (patch) | |
tree | fbe409ee1e4426fab4ea10a51fde324350a4f2fd /includes/model/User_model.php | |
parent | 1983db901b9b7ea9b87a66ed38f030369dc3a0a4 (diff) |
add a more secure way to delete users containing a password request
Diffstat (limited to 'includes/model/User_model.php')
-rw-r--r-- | includes/model/User_model.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/model/User_model.php b/includes/model/User_model.php index d051b3e9..e1bb2733 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -5,6 +5,15 @@ */ /** + * Delete a user + * + * @param int $user_id + */ +function User_delete($user_id) { + return sql_query("DELETE FROM `User` WHERE `UID`='" . sql_escape($user_id) . "'"); +} + +/** * Update user. * * @param User $user |