Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-16 15:27:45 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-01-16 20:39:11 +0300
commit55532f19d90b40f7f46354b92a5322676729ba7e (patch)
treec29ee88dbb789c7c0aa9c9f1c08fccef27272d7f /lib/public/User.php
parenta159d7c28c483a2b77e2f533795f6d6d1ec720fd (diff)
Cleanup OC_User and OCP\User
* mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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);
}
/**