summaryrefslogtreecommitdiffstats
path: root/lib/public/User.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-17 05:33:07 +0100
committerGitHub <noreply@github.com>2018-01-17 05:33:07 +0100
commit0b464e527489488ed058cc80f6bb93e086eec681 (patch)
treed2d0002f3a86221a09cb8373fa382af5c807a7a9 /lib/public/User.php
parentca2904a01778eab0bb595700d01df075bb4cf92f (diff)
parent55532f19d90b40f7f46354b92a5322676729ba7e (diff)
downloadnextcloud-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.php25
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);
}
/**