Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-05-21 20:03:37 +0400
committerArthur Schiwon <blizzz@owncloud.com>2014-05-21 20:03:37 +0400
commit2c89962919fe45bf5a577ad94f3cc0d9bc84ba35 (patch)
treef6978342700d5074c00c10ac82c7df0a009b1fef /lib/private/user.php
parent40fc1d5b4b3b05b9d2e036f3d853668a38b0e0c2 (diff)
clean up tryRememberLogin and save the timestamp of users last login
Diffstat (limited to 'lib/private/user.php')
-rw-r--r--lib/private/user.php11
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).
*