summaryrefslogtreecommitdiffstats
path: root/lib/public/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/user.php')
-rw-r--r--lib/public/user.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/public/user.php b/lib/public/user.php
index c9f01d4a597..53ff8d25fc5 100644
--- a/lib/public/user.php
+++ b/lib/public/user.php
@@ -63,15 +63,17 @@ 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);
+ public static function userExists( $uid ){
+ return \OC_USER::userExists( $uid );
}
+
/**
* @brief Loggs the user out including all the session data
* @returns true
@@ -82,6 +84,7 @@ class User {
return \OC_USER::logout();
}
+
/**
* @brief Check if the password is correct
* @param $uid The username
@@ -91,9 +94,10 @@ class User {
* Check if the password is correct without logging in the user
*/
public static function checkPassword( $uid, $password ){
- return \OC_USER::checkPassword($uid, $password);
+ return \OC_USER::checkPassword( $uid, $password );
}
+
/**
* Check if the user is a admin, redirects to home if not
*/
@@ -101,6 +105,7 @@ class User {
\OC_Util::checkAdminUser();
}
+
/**
* Check if the user is logged in, redirects to home if not. With
* redirect URL parameter to the request URI.
@@ -110,6 +115,7 @@ class User {
}
+
}