diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-17 05:33:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 05:33:07 +0100 |
commit | 0b464e527489488ed058cc80f6bb93e086eec681 (patch) | |
tree | d2d0002f3a86221a09cb8373fa382af5c807a7a9 /lib/public/User.php | |
parent | ca2904a01778eab0bb595700d01df075bb4cf92f (diff) | |
parent | 55532f19d90b40f7f46354b92a5322676729ba7e (diff) | |
download | nextcloud-server-0b464e527489488ed058cc80f6bb93e086eec681.tar.gz nextcloud-server-0b464e527489488ed058cc80f6bb93e086eec681.zip |
Merge pull request #7884 from nextcloud/cleanup-oc_user
Cleanup OC_User and OCP\User
Diffstat (limited to 'lib/public/User.php')
-rw-r--r-- | lib/public/User.php | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/lib/public/User.php b/lib/public/User.php index fd39b103d65..2fdf540b958 100644 --- a/lib/public/User.php +++ b/lib/public/User.php @@ -115,30 +115,7 @@ class User { * @since 5.0.0 */ public static function userExists($uid, $excludingBackend = null) { - return \OC_User::userExists($uid); - } - /** - * Logs the user out including all the session data - * Logout, destroys session - * @deprecated 8.0.0 Use \OC::$server->getUserSession()->logout(); - * @since 5.0.0 - */ - public static function logout() { - \OC::$server->getUserSession()->logout(); - } - - /** - * Check if the password is correct - * @param string $uid The username - * @param string $password The password - * @return string|false username on success, false otherwise - * - * Check if the password is correct without logging in the user - * @deprecated 8.0.0 Use \OC::$server->getUserManager()->checkPassword(); - * @since 5.0.0 - */ - public static function checkPassword( $uid, $password ) { - return \OC_User::checkPassword( $uid, $password ); + return \OC::$server->getUserManager()->userExists($uid); } /** |