diff --git a/checkin_notes b/checkin_notes index 49f365f6ac..087b233083 100755 --- a/checkin_notes +++ b/checkin_notes @@ -369,3 +369,10 @@ Bruce 12 Jan 2006 sched/ file_upload_handler.C +David 12 Jan 2006 + - Web RPC: fixed bug in am_set_info.php that caused password_hash + to not update. + (from Willy de Zutter) + + html/user/ + am_set_info.php diff --git a/html/user/am_set_info.php b/html/user/am_set_info.php index e54d618fbb..3e4946e1c2 100644 --- a/html/user/am_set_info.php +++ b/html/user/am_set_info.php @@ -88,19 +88,20 @@ if ($email_addr && $email_addr!=$user->email_addr) { $query .= " email_addr='$email_addr', "; } if ($password_hash) { - $password_hash .= " password_hash='$password_hash', "; + $query .= " passwd_hash='$password_hash', "; } // the seti_id=seti_id is to make it legal if no fields updated // -$result = mysql_query("update user set $query seti_id=seti_id where id=$user->id"); +$query = "update user set $query seti_id=seti_id where id=$user->id"; +$result = mysql_query($query); if ($result) { if ($old_email_addr) { send_verify_email($old_email_addr, $email_addr, $user); } success(""); } else { - error("database error"); + error("database error: ".mysql_error()); } ?>