aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_auth_internal.lua4
-rw-r--r--plugins/mod_auth_internal_hashed.lua4
2 files changed, 0 insertions, 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