diff options
Diffstat (limited to 'lib/private/user.php')
-rw-r--r-- | lib/private/user.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/user.php b/lib/private/user.php index 9276d7923c9..5d3ebb57c8c 100644 --- a/lib/private/user.php +++ b/lib/private/user.php @@ -236,6 +236,17 @@ class OC_User { } /** + * Try to login a user using the magic cookie (remember login) + * + * @param string $uid The username of the user to log in + * @param string $token + * @return bool + */ + public static function loginWithCookie($uid, $token) { + return self::getUserSession()->loginWithCookie($uid, $token); + } + + /** * Try to login a user, assuming authentication * has already happened (e.g. via Single Sign On). * |