From c8e87bf2bae300f23c45350b4497dc38a067f35d Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 8 Apr 2021 12:53:19 +0200 Subject: [PATCH] fix accounts endpoint --- docker/nginx/conf.d/client.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index eb388469..5bb1cc31 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -472,7 +472,7 @@ server { return ngx.say(json.encode{authenticated = false}) end - local res = ngx.location.capture("/accounts/user/limits", { copy_all_vars = true }) + local res = ngx.location.capture("/accounts/user", { copy_all_vars = true }) if res.status == ngx.HTTP_OK then local limits = json.decode(res.body) return ngx.say(json.encode{authenticated = limits.tier > 0})