]> git.mjollnir.org Git - moodle.git/commitdiff
Send new password mail even if email was disabled
authormoodler <moodler>
Sat, 24 Jul 2004 08:55:29 +0000 (08:55 +0000)
committermoodler <moodler>
Sat, 24 Jul 2004 08:55:29 +0000 (08:55 +0000)
login/forgot_password.php

index 381de5a084c92301015916da1954875ce2a0173a..d83341a6d1d6fd0361a7d6243269b2591fc601a5 100644 (file)
@@ -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");