diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 21:07:08 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 21:07:08 +0200 |
commit | e2fb094693e94d425fa9f59278806ef636fc127b (patch) | |
tree | c6c6b9535faa7f32b78fc3b0fedd24d85ffd0752 /lib/public/user.php | |
parent | ab584719049965f78d244879ce2a400a1955eec6 (diff) | |
download | nextcloud-server-e2fb094693e94d425fa9f59278806ef636fc127b.tar.gz nextcloud-server-e2fb094693e94d425fa9f59278806ef636fc127b.zip |
some more porting
Diffstat (limited to 'lib/public/user.php')
-rw-r--r-- | lib/public/user.php | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/lib/public/user.php b/lib/public/user.php index f59fbe0b25a..febac06730f 100644 --- a/lib/public/user.php +++ b/lib/public/user.php @@ -53,10 +53,39 @@ class User { return \OC_USER::isLoggedIn(); } + /** + * @brief check if a user exists + * @param string $uid the username + * @return boolean + */ + public static function userExists($uid){ + return \OC_USER::userExists($uid); + } -} + /** + * @brief Loggs the user out including all the session data + * @returns true + * + * Logout, destroys session + */ + public static function logout(){ + return \OC_USER::logout(); + } + + /** + * @brief Check if the password is correct + * @param $uid The username + * @param $password The password + * @returns true/false + * + * Check if the password is correct without logging in the user + */ + public static function checkPassword( $uid, $password ){ + return \OC_USER::checkPassword($uid, $password); + } +} ?> |