Software /
code /
prosody-modules
Changeset
626:f19f723571d9
mod_auth_phpbb3: Match the username_clean column instead of the username column when updating password.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 25 Mar 2012 02:30:36 +0500 |
parents | 625:2c07bcf56a36 |
children | 627:a8ff69c9b498 |
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 Mon Mar 19 17:06:02 2012 +0000 +++ b/mod_auth_phpbb3/mod_auth_phpbb3.lua Sun Mar 25 02:30:36 2012 +0500 @@ -190,7 +190,7 @@ end function provider.set_password(username, password) local hash = phpbbCreateHash(password); - local stmt, err = setsql("UPDATE `phpbb_users` SET `user_password`=? WHERE `username`=?", hash, username); + local stmt, err = setsql("UPDATE `phpbb_users` SET `user_password`=? WHERE `username_clean`=?", hash, username); return stmt and true, err; end function provider.create_user(username, password)