From 55a02149b3f6196b9f743f528dc0795f8c3e5460 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Tue, 12 Sep 2006 19:26:48 +0000 Subject: major overhaul to change and remind password. This should fix outstanding issues, and clean up old TW code. It also reduced the lenght of the confirm URL so email apps are less likely to truncate it. If you need to change anything related to user password confirmation or changing, please check with spiderr first. --- remind_password.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'remind_password.php') diff --git a/remind_password.php b/remind_password.php index 78532cc..f91625d 100644 --- a/remind_password.php +++ b/remind_password.php @@ -1,6 +1,6 @@ isRegistered() ) { $foo = parse_url($_SERVER["REQUEST_URI"]); $foo1=str_replace("remind_password","confirm",$foo["path"]); $machine = httpPrefix().$foo1; - $gBitSmarty->assign('mail_machine',$machine); - $gBitSmarty->assign('mail_provpass', $provpass); + $gBitSmarty->assign( 'mail_machine', $machine ); + $gBitSmarty->assign( 'mailProvPass', $provpass ); + $gBitSmarty->assign( 'mailUserId', $userInfo['user_id'] ); $tmp['success'] = tra("Information to reset your password has been sent "); } $tmp['success'] .= tra("to the registered email address for")." " . $_REQUEST["username"] . "."; @@ -61,5 +62,5 @@ if( $gBitUser->isRegistered() ) { $gBitSmarty->assign('msg', $tmp); } // Display the template -$gBitSystem->display( 'bitpackage:users/remind_password.tpl'); +$gBitSystem->display( 'bitpackage:users/remind_password.tpl', 'Request New Password' ); ?> -- cgit v1.3