aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/user.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-06 22:02:16 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-06 22:02:16 +0200
commit5d55c709dddad44984446efa49ceb7084fc16b3f (patch)
treefd7d0a280ab436eb40d89a3acc9e00ee8ed284f4 /lib/public/user.php
parent2edf59c026ef7c59551072ab5bfcdac576e3d65b (diff)
downloadnextcloud-server-5d55c709dddad44984446efa49ceb7084fc16b3f.tar.gz
nextcloud-server-5d55c709dddad44984446efa49ceb7084fc16b3f.zip
some more documentation cleanups. much more is needed.
And greeting from the Atlanta airport. ;-)
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 {
}
+
}