Code Review
/
msb
/
apigateway.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7d6bfd853f5c8dd482c173d252c20136c866d063
[msb/apigateway.git]
/
msb-core
/
openresty-ext
/
src
/
assembly
/
resources
/
openresty
/
nginx
/
luaext
/
login.lua
1
local h = ngx.resp.get_headers()
2
if h["openoauth"] and h["openoauth"] == "true" then
3
local cache = ngx.shared.ceryx
4
local client_ip = ngx.var.remote_addr
5
local succ, err, forcible = cache:set(client_ip, "place_holder", 3600)
6
if not succ then
7
ngx.log(ngx.WARN, err)
8
end
9
end