From c60ae1fda2def461f7def3461c321835b97ba5f6 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 8 Jul 2010 20:59:53 +0100 Subject: mod_auth_internal, mod_auth_internal_hashed: Remove checking for nil or empty password and pretending it means the user doesn't exist. Hopefully with more success than Custer. --- plugins/mod_auth_internal.lua | 4 ---- plugins/mod_auth_internal_hashed.lua | 4 ---- 2 files changed, 8 deletions(-) diff --git a/plugins/mod_auth_internal.lua b/plugins/mod_auth_internal.lua index b18403da..795d31dd 100644 --- a/plugins/mod_auth_internal.lua +++ b/plugins/mod_auth_internal.lua @@ -63,10 +63,6 @@ function new_default_provider(host) log("debug", "account not found for username '%s' at host '%s'", username, module.host); return nil, "Auth failed. Invalid username"; end - if account.password == nil or string.len(account.password) == 0 then - log("debug", "account password not set or zero-length for username '%s' at host '%s'", username, module.host); - return nil, "Auth failed. Password invalid."; - end return true; end diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua index 39a263dc..692bd9f7 100644 --- a/plugins/mod_auth_internal_hashed.lua +++ b/plugins/mod_auth_internal_hashed.lua @@ -121,10 +121,6 @@ function new_hashpass_provider(host) log("debug", "account not found for username '%s' at host '%s'", username, module.host); return nil, "Auth failed. Invalid username"; end - --[[if (account.hashpass == nil or string.len(account.hashpass) == 0) and (account.password == nil or string.len(account.password) == 0) then - log("debug", "account password not set or zero-length for username '%s' at host '%s'", username, module.host); - return nil, "Auth failed. Password invalid."; - end]] return true; end -- cgit v1.2.3