This commit is contained in:
Alexandre Aubin 2019-01-17 23:21:30 +01:00 committed by GitHub
parent 437f3c238a
commit a52ed73a11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,7 +358,7 @@ function set_headers(user)
-- If the ldap connection fail (because the password was changed). -- If the ldap connection fail (because the password was changed).
-- Logout the user and invalid the password -- Logout the user and invalid the password
if not ldap then if not ldap then
ngx.log(ngx.NOTICE, "LDAP connection failled. Disconnect user : ".. user) ngx.log(ngx.NOTICE, "LDAP connection failed. Disconnect user : ".. user)
cache:delete(authUser.."-password") cache:delete(authUser.."-password")
flash("info", t("please_login")) flash("info", t("please_login"))
local back_url = ngx.var.scheme .. "://" .. ngx.var.host .. ngx.var.uri .. uri_args_string() local back_url = ngx.var.scheme .. "://" .. ngx.var.host .. ngx.var.uri .. uri_args_string()