mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Condition typo ~.~
This commit is contained in:
parent
55d893a80f
commit
5ed18f7b84
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ end
|
|||
-- ###########################################################################
|
||||
|
||||
if permission ~= nil and ngx.req.get_headers()["Authorization"] ~= nil then
|
||||
if permission["protect_against_basic_auth_spoofing"] == false then
|
||||
if permission["protect_against_basic_auth_spoofing"] ~= false then
|
||||
-- Ignore if not a Basic auth header
|
||||
-- otherwise, we interpret this as a Auth header spoofing attempt and clear it
|
||||
local auth_header_from_client = ngx.req.get_headers()["Authorization"]
|
||||
|
|
Loading…
Reference in a new issue