diff --git a/account.php b/account.php index f29a399d9775b219ebf19d5d7e853f736a7f275a..b1967c3a693065562d1cc036684b7bdd67eba2b9 100644 --- a/account.php +++ b/account.php @@ -97,6 +97,7 @@ function makePassword($min_length=6) { session_start(); session_destroy(); unset($user); + showUser(); break; case "Register": if ($rval = validateUser($new)) { newUser($new, "<B>Error: $rval</B>"); } @@ -111,7 +112,7 @@ function makePassword($min_length=6) { } else { $message = "Your $sitename member account has been created succesfully. To be able to use it you must login using the information below. Please save this mail for further reference.\n\n username: $new[userid]\n e-mail: $newu[email]\n password: $new[passwd]\n\nThis password is generated by a randomizer. It is recommended that you change this password immediately.\n\n$contact_signature"; $subject = "Account details for $sitename"; - mail($email, $subject, $message, "From: $contact_email\nX-Mailer: PHP/" . phpversion()); + mail($new[email], $subject, $message, "From: $contact_email\nX-Mailer: PHP/" . phpversion()); print("Your member account has been created and the details necessary to login have been sent to your e-mail account <B>$email</B>. Once you received the account confirmation, hit <A HREF=\"account.php\">this link</A> to login."); } $theme->footer();