From: Stephen Soltesz <soltesz@cs.princeton.edu>
Date: Fri, 6 May 2011 05:12:15 +0000 (-0400)
Subject: Remote refresh meta tag on final step, in favor of redirection after login
X-Git-Tag: plewww-4.3-64~4
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=75682f51904707549be85cd3d9739167c7ee4fe9;p=plewww.git

Remote refresh meta tag on final step, in favor of redirection after login
---

diff --git a/planetlab/persons/reset_password.php b/planetlab/persons/reset_password.php
index 86eab54..99f5a61 100644
--- a/planetlab/persons/reset_password.php
+++ b/planetlab/persons/reset_password.php
@@ -24,8 +24,6 @@ if ( !$plc->person) {
       if ($adm->ResetPassword($person_id, $_REQUEST['key']) != 1) {
         print '<div class="messages error">' . $adm->error() . '.</div>';
       } else {
-        drupal_set_html_head("<meta http-equiv=\"refresh\" content=\"60; URL=/\"");
-
         print '<div class="messages status">';
         print "Success!  We've sent you another e-mail with your new temporary password. <br/>"; 
         print "You can login using this temporaray password.  <br/>"; 
@@ -75,6 +73,7 @@ EOF;
     include 'plc_footer.php';
 
 } else {
+  // Otherwise display the user's account page.
   Header("Location: /db/persons/index.php?id=" . $plc->person['person_id']);
   exit();
 }