# HG changeset patch # User Waqas Hussain # Date 1332624636 -18000 # Node ID f19f723571d95ef2615e3fd50efb2b40c9d88e67 # Parent 2c07bcf56a36d6e74dc0f5422e89bd61f4d31239 mod_auth_phpbb3: Match the username_clean column instead of the username column when updating password. diff -r 2c07bcf56a36 -r f19f723571d9 mod_auth_phpbb3/mod_auth_phpbb3.lua --- 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)