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

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;