General Community > Global WebsiteBaker 2.8.x discussion
Bug in user signup
(1/1)
nl:
Hi,
I think I have found a bug in the user sign up script.
If the confirmation email can not be sent, the user is shown an error message on screen and the script dies. There is, after this, a database call to DELETE the details the user has just entered from the database.
This call is made after the script dies so the entered user details are never removed.
--- Code: --- $wb->print_error($MESSAGE['FORGOT_PASS']['CANNOT_EMAIL'], $js_back, false);
$database->query("DELETE FROM ".TABLE_PREFIX."users WHERE username = '$username'");
--- End code ---
this works:
--- Code: --- $database->query("DELETE FROM ".TABLE_PREFIX."users WHERE username = '$username'");
$wb->print_error($MESSAGE['FORGOT_PASS']['CANNOT_EMAIL'], $js_back, false);
--- End code ---
I hope I have posted this to the right place.
Navigation
[0] Message Index
Go to full version