summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/user/user.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php
index 82f02e0f2b5..86a362ae758 100644
--- a/lib/private/user/user.php
+++ b/lib/private/user/user.php
@@ -259,6 +259,9 @@ class User {
return $this->lastLogin;
}
+ /**
+ * @brief updates the timestamp of the most recent login of this user
+ */
public function updateLastLogin() {
$this->lastLogin = time();
\OC_Preferences::setValue($this->uid, 'login', 'lastLogin', $this->lastLogin);