From: moodler Date: Sat, 24 Jul 2004 08:55:29 +0000 (+0000) Subject: Send new password mail even if email was disabled X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=39eece7bd1010c40166683f203ebf2dbbc937163;p=moodle.git Send new password mail even if email was disabled --- diff --git a/login/forgot_password.php b/login/forgot_password.php index 381de5a084..d83341a6d1 100644 --- a/login/forgot_password.php +++ b/login/forgot_password.php @@ -17,6 +17,8 @@ if (isguest($user->id)) { error("Can't change guest password!"); } + + $user->emailstop = 0; // Send mail even if sending mail was forbidden if (! reset_password_and_mail($user)) { error("Could not reset password and mail the new one to you");