Update the last activity in OAuth
This commit is contained in:
parent
431eb34a1c
commit
8e0196fec3
2 changed files with 2 additions and 4 deletions
|
@ -353,14 +353,12 @@ class Authentication
|
|||
$this->setXAccMgmtStatusHeader($user_record);
|
||||
|
||||
if ($login_initial || $login_refresh) {
|
||||
$this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()], ['uid' => $user_record['uid']]);
|
||||
$this->dba->update('user', ['last-activity' => DateTimeFormat::utcNow('Y-m-d'), 'login_date' => DateTimeFormat::utcNow()], ['uid' => $user_record['uid']]);
|
||||
|
||||
// Set the login date for all identities of the user
|
||||
$this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()],
|
||||
['parent-uid' => $user_record['uid'], 'account_removed' => false]);
|
||||
|
||||
// User::updateLastActivity($user_record['uid']);
|
||||
|
||||
// Regularly update suggestions
|
||||
if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) {
|
||||
Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']);
|
||||
|
|
|
@ -104,7 +104,7 @@ class OAuth
|
|||
}
|
||||
Logger::debug('Token found', $token);
|
||||
|
||||
// User::updateLastActivity($token['uid']);
|
||||
User::updateLastActivity($token['uid']);
|
||||
|
||||
// Regularly update suggestions
|
||||
if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
|
||||
|
|
Loading…
Reference in a new issue