PHP Classes

user update correction

Recommend this page to a friend!

      PHPBB 3 Integration class  >  All threads  >  user update correction  >  (Un) Subscribe thread alerts  
Subject:user update correction
Summary:user update correction
Messages:2
Author:cybz
Date:2008-11-10 21:40:23
Update:2008-11-19 22:07:07
 

  1. user update correction   Reply   Report abuse  
Picture of cybz cybz - 2008-11-10 21:40:24
Line 179 of the class file:

$db->sql_query("UPDATE ".USERS_TABLE." SET ".substr($sql, 2))." WHERE user_id = '".$phpbb_vars["user_id"]."'";

replace by

$db->sql_query("UPDATE ".USERS_TABLE." SET ".substr($sql, 2)." WHERE user_id = '".$phpbb_vars["user_id"]."'");

Or else when you update a user, or add a user, which calls the update function, it will update all members in the table.

  2. Re: user update correction   Reply   Report abuse  
Picture of cybz cybz - 2008-11-19 22:07:07 - In reply to message 1 from cybz
line 169, comment it out

if(isset($phpbb_vars["user_password"])) $phpbb_vars["user_password"] = md5($phpbb_vars["user_password"]);

or else it will encrypt the password twice when you update it and the password will be wrong