aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_internal_hashed.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-07-08 20:59:53 +0100
committerMatthew Wild <mwild1@gmail.com>2010-07-08 20:59:53 +0100
commitc60ae1fda2def461f7def3461c321835b97ba5f6 (patch)
tree70141fb5406f6a7b3ab8eeca630ef85ab3ca1e83 /plugins/mod_auth_internal_hashed.lua
parent3553829ba5a5bdc30c982f5d7bcb49c3d11b60a6 (diff)
downloadprosody-c60ae1fda2def461f7def3461c321835b97ba5f6.tar.gz
prosody-c60ae1fda2def461f7def3461c321835b97ba5f6.zip
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.
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r--plugins/mod_auth_internal_hashed.lua4
1 files changed, 0 insertions, 4 deletions
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