]> git.mjollnir.org Git - moodle.git/commitdiff
Don't allow password changing if the user isn't confirmed yet
authormoodler <moodler>
Sat, 24 May 2003 02:25:57 +0000 (02:25 +0000)
committermoodler <moodler>
Sat, 24 May 2003 02:25:57 +0000 (02:25 +0000)
login/forgot_password.php

index 82961dedbad3e574bf81d1ca96ac4cb77caf9b5b..221e2dbd8a3459ee1ee155b7400913ef42e27a70 100644 (file)
                        if (!$user = get_user_info_from_db("email", $frm->email)) {
                 error("No such user with this address:  $frm->email");
             }
+
+            if (empty($user->confirmed)) {
+                error(get_string("confirmednot"));
+            }
             
             $user->secret = random_string(15);