mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[enh] Log authentication fails as ERROR
This commit is contained in:
parent
502427e63b
commit
e5e4f35223
1 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ function authenticate (user, password)
|
|||
ngx.log(ngx.NOTICE, "Use email: "..user)
|
||||
user = attribs[conf["ldap_identifier"]]
|
||||
else
|
||||
ngx.log(ngx.NOTICE, "Unknown email: "..user)
|
||||
ngx.log(ngx.ERR, "Unknown email: "..user)
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
@ -222,7 +222,7 @@ function authenticate (user, password)
|
|||
ngx.log(ngx.NOTICE, "Connected as: "..user)
|
||||
return user
|
||||
else
|
||||
ngx.log(ngx.NOTICE, "Connection failed for: "..user)
|
||||
ngx.log(ngx.ERR, "Connection failed for: "..user)
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue