wolfpet / kitchen

Open Source Threaded Discussion project
6 stars 3 forks source link

Fix for Issue #142 "Impossible to change e-mail in user's profile" #143

Closed BGmot closed 6 years ago

BGmot commented 6 years ago

$email submitted via

's POST is always overwritten by $email taken from DB for given user due to including auth.php after get_params_inc.php: https://github.com/wolfpet/kitchen/blob/250f5eddf2efa6222cc2a8b1e68de557d1a6e730/Forum/php/head_inc.php#L169

I think changing the order of require_once() is rather dangerous so decided to change the input's name in this form from $email to $email1.