Update user.login_date for authenticated API calls

This commit is contained in:
Hypolite Petovan 2020-06-23 09:09:23 -04:00
parent 4e5c3157fe
commit 43e6cec200
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ function api_login(App $a)
throw new UnauthorizedException("This API requires login");
}
DI::auth()->setForUser($a, $record);
DI::auth()->setForUser($a, $record, false, false, true);
$_SESSION["allow_api"] = true;