diff options
Diffstat (limited to 'lib/User/database.php')
-rw-r--r-- | lib/User/database.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/User/database.php b/lib/User/database.php index f0b68cf17d7..5b68d3ff7c2 100644 --- a/lib/User/database.php +++ b/lib/User/database.php @@ -65,6 +65,18 @@ class OC_USER_DATABASE extends OC_USER_BACKEND { } /** + * Try to delete a user + * + * @param string $username The username of the user to delete + */ + public static function deleteUser( $uid ){ + $query = OC_DB::prepare( "DELETE FROM `*PREFIX*users` WHERE `uid` = ?" ); + $result = $query->execute( array( $uid )); + + return true; + } + + /** * Try to login a user * * @param string $username The username of the user to log in |