plugins/SpecialUserFuncs.php
changeset 521 d264784355e5
parent 517 c6118b9e13bd
child 525 3f2dfdb99be4
--- a/plugins/SpecialUserFuncs.php	Tue Apr 08 20:29:18 2008 -0400
+++ b/plugins/SpecialUserFuncs.php	Tue Apr 08 20:30:05 2008 -0400
@@ -542,6 +542,14 @@
     }
     else
     {
+      if ( $result['error'] === 'valid_reset' )
+      {
+        header('HTTP/1.1 302 Temporary Redirect');
+        header('Location: ' . $result['redirect_url']);
+        
+        $db->close();
+        exit();
+      }
       $GLOBALS['__login_status'] = $result;
     }
   }