includes/sessions.php
changeset 521 d264784355e5
parent 511 f88c8c79d784
child 525 3f2dfdb99be4
--- a/includes/sessions.php	Tue Apr 08 20:29:18 2008 -0400
+++ b/includes/sessions.php	Tue Apr 08 20:30:05 2008 -0400
@@ -956,9 +956,11 @@
           eval($cmd);
         }
         
-        header('Location: ' . makeUrlComplete('Special', 'PasswordReset/stage2/' . $row['user_id'] . '/' . $row['temp_password']) );
-        
-        exit;
+        return array(
+            'success' => false,
+            'error' => 'valid_reset',
+            'redirect_url' => makeUrlComplete('Special', 'PasswordReset/stage2/' . $row['user_id'] . '/' . $row['temp_password'])
+          );
       }
     }