Code Review
/
msb
/
apigateway.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Normalize line endings
[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