summaryrefslogtreecommitdiff
path: root/remind_password.php
diff options
context:
space:
mode:
authorAndy Stanford <phoenixandy@users.sourceforge.net>2007-02-09 15:28:53 +0000
committerAndy Stanford <phoenixandy@users.sourceforge.net>2007-02-09 15:28:53 +0000
commitbd4953f81f840dc47bf3cae5dca1af098e1760ad (patch)
tree1683fb51596f66ea9652fdb20c86ccc1ffce0e72 /remind_password.php
parent3fca7949a2f584650993cb5dc12b874d4c0c4493 (diff)
downloadusers-bd4953f81f840dc47bf3cae5dca1af098e1760ad.tar.gz
users-bd4953f81f840dc47bf3cae5dca1af098e1760ad.tar.bz2
users-bd4953f81f840dc47bf3cae5dca1af098e1760ad.zip
Fixed undefined variable in forgotten password utility
Diffstat (limited to 'remind_password.php')
-rw-r--r--remind_password.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/remind_password.php b/remind_password.php
index 43fef4a..3733755 100644
--- a/remind_password.php
+++ b/remind_password.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/remind_password.php,v 1.20 2007/01/04 21:45:55 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/remind_password.php,v 1.21 2007/02/09 15:28:53 phoenixandy 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: remind_password.php,v 1.20 2007/01/04 21:45:55 squareing Exp $
+ * $Id: remind_password.php,v 1.21 2007/02/09 15:28:53 phoenixandy Exp $
* @package users
* @subpackage functions
*/
@@ -34,6 +34,7 @@ if( $gBitUser->isRegistered() ) {
if ( $gBitSystem->isFeatureActive( 'users_clear_passwords' ) && !empty($userInfo['user_password']) ) {
$gBitSmarty->assign( 'userPass', $userInfo['user_password'] );
$tmp['success'] = tra("A password reminder email has been sent ");
+ $pass = $userInfo['user_password'];
} else {
$pass = $gBitUser->genPass();
list($pass,$provpass) = $gBitUser->createTempPassword( $_REQUEST["username"], $pass );