Improved assigning of "last-activity" and "login_date"
This commit is contained in:
parent
dc96a72173
commit
72e045e744
4 changed files with 25 additions and 42 deletions
|
@ -104,7 +104,10 @@ class OAuth
|
|||
}
|
||||
Logger::debug('Token found', $token);
|
||||
|
||||
User::updateLastActivity($token['uid']);
|
||||
$user = User::getById($token['uid'], ['uid', 'last-activity', 'login_date']);
|
||||
if (!empty($user)) {
|
||||
User::updateLastActivity($user, false);
|
||||
}
|
||||
|
||||
// Regularly update suggestions
|
||||
if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue