Software /
code /
prosody-modules
Changeset
375:cac309a3d655
mod_auth_phpbb3: Fixed traceback when logging in as a non-existent user.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 01 Jul 2011 07:52:01 +0500 |
parents | 374:2dd6dfda94d6 |
children | 376:8f5726adc61e |
files | mod_auth_phpbb3/mod_auth_phpbb3.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_auth_phpbb3/mod_auth_phpbb3.lua Fri Jul 01 07:51:00 2011 +0500 +++ b/mod_auth_phpbb3/mod_auth_phpbb3.lua Fri Jul 01 07:52:01 2011 +0500 @@ -157,7 +157,7 @@ module:log("debug", "test_password '%s' for user %s", password, username); local hash = get_password(username); - return phpbbCheckHash(password, hash); + return hash and phpbbCheckHash(password, hash); end function provider.user_exists(username) module:log("debug", "test user %s existence", username);