From 57563fb7034b54eb5449675adef0418e48168444 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Thu, 13 Dec 2007 01:01:35 +0000 Subject: [PATCH] Bugfix: login link after resetting of password was ignoring e_SIGNUP. (customsignup.php). Also changed the layout of the response slightly, to really spell-out the login info and help to avoid recurring problems associated with human errors. --- e107_languages/English/lan_fpw.php | 10 +++++----- fpw.php | 14 ++++++++++---- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/e107_languages/English/lan_fpw.php b/e107_languages/English/lan_fpw.php index 04ede40b2..a0d058882 100644 --- a/e107_languages/English/lan_fpw.php +++ b/e107_languages/English/lan_fpw.php @@ -4,9 +4,9 @@ | e107 website system - Language File. | | $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_fpw.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:34:39 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2007-12-13 01:01:35 $ +| $Author: e107coders $ +----------------------------------------------------------------------------+ */ define("PAGE_NAME", "Password Reset"); @@ -33,8 +33,8 @@ define("LAN_FPW4","A request has already been sent to reset this password, if yo define("LAN_FPW5","A request to reset your password for"); define("LAN_FPW6","An email has been sent to you with a link that will allow you to reset your password."); define("LAN_FPW7","This is not a valid link to reset your password.
Please contact the site administrator for more details."); -define("LAN_FPW8","The password for username"); -define("LAN_FPW9","has been successfully changed.

The new password is:"); +define("LAN_FPW8","Your password has been changed successfully."); +define("LAN_FPW9","The new password is:"); define("LAN_FPW10","Please"); define("LAN_FPW11","log in now"); define("LAN_FPW12","and immediately change your password, for security purposes."); diff --git a/fpw.php b/fpw.php index 091b18df9..57c3488f6 100644 --- a/fpw.php +++ b/fpw.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/fpw.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-01-17 13:38:24 $ -| $Author: mrpete $ +| $Revision: 1.3 $ +| $Date: 2007-12-13 01:01:35 $ +| $Author: e107coders $ +----------------------------------------------------------------------------+ */ require_once("class2.php"); @@ -81,7 +81,12 @@ if (e_QUERY) { cookie($pref['cookie_name'], "", (time()-2592000)); $_SESSION[$pref['cookie_name']] = ""; - $txt = LAN_FPW8." {$username} ".LAN_FPW9." {$newpw}

".LAN_FPW10." ".LAN_FPW11." ".LAN_FPW12; + $txt = "
".LAN_FPW8."

+ + + +
".LAN_218."{$username}
".LAN_FPW9."{$newpw}
+

".LAN_FPW10." ".LAN_FPW11." ".LAN_FPW12."
"; fpw_error($txt); } else { @@ -134,6 +139,7 @@ if (isset($_POST['pwsubmit'])) { //Set timestamp two days ahead so it doesn't get auto-deleted $sql->db_Insert("tmp", "'pwreset',{$deltime},'{$user_name}{$fpw_sep}{$rcode}'"); + if (sendemail($_POST['email'], "".LAN_09."".SITENAME, $message)) { $text = "
".LAN_FPW6."
"; } else {