mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
do not compare the same thing several times
This commit is contained in:
parent
397f7b3910
commit
fb45cd0441
1 changed files with 2 additions and 2 deletions
|
@ -248,12 +248,12 @@ function refresh_logged_in()
|
|||
user..
|
||||
"|"..expireTime..
|
||||
"|"..session_key)
|
||||
if hash ~= authHash then
|
||||
is_logged_in = hash == authHash
|
||||
if not is_logged_in then
|
||||
logger.info("Hash "..authHash.." rejected for "..user.."@"..ngx.var.remote_addr)
|
||||
else
|
||||
authUser = user
|
||||
end
|
||||
is_logged_in = hash == authHash
|
||||
return is_logged_in
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue