Update user.login_date for authenticated API calls
This commit is contained in:
parent
4e5c3157fe
commit
43e6cec200
|
@ -264,7 +264,7 @@ function api_login(App $a)
|
||||||
throw new UnauthorizedException("This API requires login");
|
throw new UnauthorizedException("This API requires login");
|
||||||
}
|
}
|
||||||
|
|
||||||
DI::auth()->setForUser($a, $record);
|
DI::auth()->setForUser($a, $record, false, false, true);
|
||||||
|
|
||||||
$_SESSION["allow_api"] = true;
|
$_SESSION["allow_api"] = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue