Mercurial > prosody-modules
comparison mod_auth_phpbb3/mod_auth_phpbb3.lua @ 376:8f5726adc61e
mod_auth_phpbb3: Comment logging of user password.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 01 Jul 2011 07:53:13 +0500 |
parents | cac309a3d655 |
children | 145fa870321c |
comparison
equal
deleted
inserted
replaced
375:cac309a3d655 | 376:8f5726adc61e |
---|---|
152 end | 152 end |
153 | 153 |
154 provider = { name = "phpbb3" }; | 154 provider = { name = "phpbb3" }; |
155 | 155 |
156 function provider.test_password(username, password) | 156 function provider.test_password(username, password) |
157 module:log("debug", "test_password '%s' for user %s", password, username); | 157 --module:log("debug", "test_password '%s' for user %s", tostring(password), tostring(username)); |
158 | |
159 local hash = get_password(username); | 158 local hash = get_password(username); |
160 return hash and phpbbCheckHash(password, hash); | 159 return hash and phpbbCheckHash(password, hash); |
161 end | 160 end |
162 function provider.user_exists(username) | 161 function provider.user_exists(username) |
163 module:log("debug", "test user %s existence", username); | 162 module:log("debug", "test user %s existence", username); |