[mod] remove things not related to logging

This commit is contained in:
Laurent Peuch 2017-05-13 15:08:56 +02:00
parent ad39e3ded5
commit 054b7d1752

View file

@ -117,7 +117,7 @@ function set_auth_cookie(user, domain)
cache:add("session_"..user, session_key, conf["session_max_timeout"])
end
local hash = ngx.md5(srvkey..
-- "|" ..ngx.var.remote_addr..
"|" ..ngx.var.remote_addr..
"|"..user..
"|"..expire..
"|"..session_key)
@ -187,7 +187,7 @@ function is_logged_in()
if cache:get(user.."-password") then
authUser = user
local hash = ngx.md5(srvkey..
-- "|"..ngx.var.remote_addr..
"|"..ngx.var.remote_addr..
"|"..authUser..
"|"..expireTime..
"|"..session_key)