]> git.mxchange.org Git - friendica.git/commitdiff
Update user.login_date for authenticated API calls
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 23 Jun 2020 13:09:23 +0000 (09:09 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 23 Jun 2020 13:09:23 +0000 (09:09 -0400)
include/api.php

index d314988ed867eb861d90143c4df2443d52473427..ba87c8c366899ecc70dfa35521798bf93e78c024 100644 (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;