From cf5eb549001f19e84841b236170e7fe4ed2859e1 Mon Sep 17 00:00:00 2001 From: natrak <> Date: Sat, 3 Jun 2000 09:04:59 +0000 Subject: [PATCH] Fixed a typo causing the welcome mail not to be sent :) --- account.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account.php b/account.php index f29a399d9775..b1967c3a6930 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(); -- GitLab