diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-03 13:33:56 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-03 13:33:56 +0200 |
commit | eb2a1e0f8a9514530702cbb049a309ad3ee75938 (patch) | |
tree | bb5ca690ab30ee5d39cd12751ddb8ac13324c990 /lib/user/session.php | |
parent | 1a4021a0fe0a5b3b9242109b2de441d30dfb5235 (diff) | |
download | nextcloud-server-eb2a1e0f8a9514530702cbb049a309ad3ee75938.tar.gz nextcloud-server-eb2a1e0f8a9514530702cbb049a309ad3ee75938.zip |
move phpdoc comments
Diffstat (limited to 'lib/user/session.php')
-rw-r--r-- | lib/user/session.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/user/session.php b/lib/user/session.php index 5406275170f..cf93d9593af 100644 --- a/lib/user/session.php +++ b/lib/user/session.php @@ -71,6 +71,8 @@ class Session implements Emitter { } /** + * get the manager object + * * @return \OC\User\Manager */ public function getManager() { @@ -110,6 +112,13 @@ class Session implements Emitter { } } + /** + * try to login with the provided credentials + * + * @param string $uid + * @param string $password + * @return bool + */ public function login($uid, $password) { $this->manager->emit('\OC\User', 'preLogin', array($uid, $password)); $user = $this->manager->get($uid); @@ -127,6 +136,9 @@ class Session implements Emitter { } } + /** + * logout the user from the session + */ public function logout() { $this->manager->emit('\OC\User', 'logout'); $this->setUser(null); @@ -148,7 +160,7 @@ class Session implements Emitter { } /** - * @brief Remove cookie for "remember username" + * Remove cookie for "remember username" */ public function unsetMagicInCookie() { unset($_COOKIE["oc_username"]); //TODO: DI |