mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[mod] remove things not related to logging
This commit is contained in:
parent
ad39e3ded5
commit
054b7d1752
1 changed files with 3 additions and 3 deletions
|
@ -117,7 +117,7 @@ function set_auth_cookie(user, domain)
|
||||||
cache:add("session_"..user, session_key, conf["session_max_timeout"])
|
cache:add("session_"..user, session_key, conf["session_max_timeout"])
|
||||||
end
|
end
|
||||||
local hash = ngx.md5(srvkey..
|
local hash = ngx.md5(srvkey..
|
||||||
-- "|" ..ngx.var.remote_addr..
|
"|" ..ngx.var.remote_addr..
|
||||||
"|"..user..
|
"|"..user..
|
||||||
"|"..expire..
|
"|"..expire..
|
||||||
"|"..session_key)
|
"|"..session_key)
|
||||||
|
@ -187,11 +187,11 @@ function is_logged_in()
|
||||||
if cache:get(user.."-password") then
|
if cache:get(user.."-password") then
|
||||||
authUser = user
|
authUser = user
|
||||||
local hash = ngx.md5(srvkey..
|
local hash = ngx.md5(srvkey..
|
||||||
-- "|"..ngx.var.remote_addr..
|
"|"..ngx.var.remote_addr..
|
||||||
"|"..authUser..
|
"|"..authUser..
|
||||||
"|"..expireTime..
|
"|"..expireTime..
|
||||||
"|"..session_key)
|
"|"..session_key)
|
||||||
if hash ~= authHash then
|
if hash ~= authHash then
|
||||||
log("Hash "..authHash.." rejected for "..user.."@"..ngx.var.remote_addr)
|
log("Hash "..authHash.." rejected for "..user.."@"..ngx.var.remote_addr)
|
||||||
end
|
end
|
||||||
return hash == authHash
|
return hash == authHash
|
||||||
|
|
Loading…
Reference in a new issue