diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-06-15 09:11:10 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-06-15 09:11:10 +0500 |
commit | c44856d4d0daa4be1e96ea90d3daedeaeddbfd08 (patch) | |
tree | b6bbab51612287e205cb0c4d5738ec6ecccf558b /plugins/mod_auth_internal_hashed.lua | |
parent | 20e4e09b0e2206f3d5c2ced0dacaf926ff151d12 (diff) | |
download | prosody-c44856d4d0daa4be1e96ea90d3daedeaeddbfd08.tar.gz prosody-c44856d4d0daa4be1e96ea90d3daedeaeddbfd08.zip |
mod_auth_internal_hashed: Don't assume user doesn't exist if no recognizable authentication data is found.
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r-- | plugins/mod_auth_internal_hashed.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua index f8e9b00c..81dfe688 100644 --- a/plugins/mod_auth_internal_hashed.lua +++ b/plugins/mod_auth_internal_hashed.lua @@ -100,10 +100,10 @@ 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 + --[[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 + end]] return true; end |