summaryrefslogtreecommitdiff
path: root/change_password.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2007-07-24 08:05:26 +0000
committerLester Caine <lester@lsces.co.uk>2007-07-24 08:05:26 +0000
commit67a12027d5b611bb655b40b5f51ddfadd94aba47 (patch)
tree40e944512317b80eee87a51519f27028bbd99382 /change_password.php
parent01effaac5deab125d4c31c78ccf2721f3b558299 (diff)
downloadusers-67a12027d5b611bb655b40b5f51ddfadd94aba47.tar.gz
users-67a12027d5b611bb655b40b5f51ddfadd94aba47.tar.bz2
users-67a12027d5b611bb655b40b5f51ddfadd94aba47.zip
Correct logic of provpass validation
Diffstat (limited to 'change_password.php')
-rw-r--r--change_password.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/change_password.php b/change_password.php
index b8a4f20..71aede6 100644
--- a/change_password.php
+++ b/change_password.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/change_password.php,v 1.9 2007/07/24 08:02:57 lsces Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/change_password.php,v 1.10 2007/07/24 08:05:26 lsces Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: change_password.php,v 1.9 2007/07/24 08:02:57 lsces Exp $
+ * $Id: change_password.php,v 1.10 2007/07/24 08:05:26 lsces Exp $
* @package users
* @subpackage functions
*/
@@ -48,9 +48,9 @@ if (isset($_REQUEST["change"])) {
$gBitSmarty->assign( 'mailEmail',$validated['email'] );
$mail_data = $gBitSmarty->fetch('bitpackage:users/welcome_mail.tpl');
mail($validated["email"], tra( 'Welcome to' ).' '.$gBitSystem->getConfig('site_title', $_SERVER['HTTP_HOST'] ),$mail_data,"From: ".$gBitSystem->getConfig('site_sender_email')."\r\nContent-type: text/plain;charset=utf-8\r\n");
- } else {
+ }
+ } else {
$gBitSystem->fatalError( tra("Password reset request is invalid or has expired") );
- }
}
} elseif( $gBitUser->isRegistered() ) {
if( !( $validated = $gBitUser->validate( $userInfo['login'], $_REQUEST["oldpass"], '', '' )) ) {