Revision 681
Added by doc almost 17 years ago
signup2.php | ||
---|---|---|
130 | 130 |
|
131 | 131 |
// Try sending the email |
132 | 132 |
if($wb->mail(SERVER_EMAIL,$mail_to,$mail_subject,$mail_message)) { |
133 |
$display_form = false; |
|
133 | 134 |
$wb->print_success($MESSAGE['FORGOT_PASS']['PASSWORD_RESET'], WB_URL.'/account/login.php'); |
134 |
$display_form = false; |
|
135 | 135 |
} else { |
136 |
$database->query("DELETE FROM ".TABLE_PREFIX."users WHERE username = '$username'"); |
|
136 | 137 |
$wb->print_error($MESSAGE['FORGOT_PASS']['CANNOT_EMAIL'], $js_back, false); |
137 |
$database->query("DELETE FROM ".TABLE_PREFIX."users WHERE username = '$username'"); |
|
138 | 138 |
} |
139 | 139 |
} |
140 | 140 |
|
Also available in: Unified diff
fixed bug in user signup