fix accounts endpoint
This commit is contained in:
parent
01e9ea57cc
commit
c8e87bf2ba
|
@ -472,7 +472,7 @@ server {
|
||||||
return ngx.say(json.encode{authenticated = false})
|
return ngx.say(json.encode{authenticated = false})
|
||||||
end
|
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
|
if res.status == ngx.HTTP_OK then
|
||||||
local limits = json.decode(res.body)
|
local limits = json.decode(res.body)
|
||||||
return ngx.say(json.encode{authenticated = limits.tier > 0})
|
return ngx.say(json.encode{authenticated = limits.tier > 0})
|
||||||
|
|
Reference in New Issue