Diff

mod_auth_phpbb3/mod_auth_phpbb3.lua @ 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
parent 421:816d8e3e83a3
child 665:684cc57a49c1
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)