]> git.mjollnir.org Git - moodle.git/commitdiff
login: forgot password now works for guest again (bug #6214)
authormartinlanghoff <martinlanghoff>
Fri, 4 Aug 2006 06:11:48 +0000 (06:11 +0000)
committermartinlanghoff <martinlanghoff>
Fri, 4 Aug 2006 06:11:48 +0000 (06:11 +0000)
login/forgot_password.php

index 8f540b9ccc7eabeb679d33d2753f2bcf6c3dd4db..72c42ade55d42241bb6602a0473034411fd7eb1a 100644 (file)
@@ -50,7 +50,7 @@ $page = ''; // page to display
 //******************************
 
 // if you are logged in then you shouldn't be here!
-if (isloggedin()) {
+if (isloggedin() && !isguest()) {
     redirect( $CFG->wwwroot.'/index.php', $txt->loginalready, 5 );
 }