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. --- confirm.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'confirm.php') diff --git a/confirm.php b/confirm.php index 7937744..e4974f8 100644 --- a/confirm.php +++ b/confirm.php @@ -1,6 +1,6 @@ confirmRegistration( $_REQUEST["user"], $_REQUEST["pass"] ) ) { +if( !empty( $_REQUEST["v"] ) && strpos( $_REQUEST["v"], ':' ) ) { + list( $userId, $provPass ) = split( ':', $_REQUEST["v"] ); +} + +if( !empty( $userId ) && !empty( $provPass ) && $userInfo = $gBitUser->confirmRegistration( $userId, $provPass ) ) { $gBitSmarty->assign_by_ref( 'userInfo', $userInfo ); - $gBitSystem->display( 'bitpackage:users/change_password.tpl' ); + $gBitSystem->display( 'bitpackage:users/change_password.tpl', 'Confrim Password Change' ); } else { - $gBitSmarty->assign('msg', tra("This confirmation link is no longer valid. Please Login.")); - $gBitSystem->display( 'error.tpl' ); + $gBitSystem->fatalError( tra("This confirmation link is no longer valid. Please Login or request a new password change") ); } ?> -- cgit v1.3