diff options
| author | wjames5 <will@tekimaki.com> | 2010-02-01 16:27:28 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2010-02-01 16:27:28 +0000 |
| commit | 9d120de12392251703ade4c55188b215faa9cc3d (patch) | |
| tree | 32fa36539bd6f10f21f8b495253363180a8fe88a /BitUser.php | |
| parent | 89db0f87b3bfa6461be87fd14c5b5b5b3e80fbbd (diff) | |
| download | users-9d120de12392251703ade4c55188b215faa9cc3d.tar.gz users-9d120de12392251703ade4c55188b215faa9cc3d.tar.bz2 users-9d120de12392251703ade4c55188b215faa9cc3d.zip | |
if password2 is set check it against the password
Diffstat (limited to 'BitUser.php')
| -rw-r--r-- | BitUser.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/BitUser.php b/BitUser.php index 380db6e..02f596f 100644 --- a/BitUser.php +++ b/BitUser.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.241 2009/11/18 18:03:26 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.242 2010/02/01 16:27:28 wjames5 Exp $ * * Lib for user administration, groups and permissions * This lib uses pear so the constructor requieres @@ -12,7 +12,7 @@ * All Rights Reserved. See below for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details * - * $Id: BitUser.php,v 1.241 2009/11/18 18:03:26 spiderr Exp $ + * $Id: BitUser.php,v 1.242 2010/02/01 16:27:28 wjames5 Exp $ * @package users */ @@ -42,7 +42,7 @@ define( "ACCOUNT_DISABLED", -6 ); * Class that holds all information for a given user * * @author spider <spider@steelsun.com> - * @version $Revision: 1.241 $ + * @version $Revision: 1.242 $ * @package users * @subpackage BitUser */ @@ -289,6 +289,9 @@ class BitUser extends LibertyMime { } if( isset( $pParamHash['password'] ) ) { + if( isset( $_REQUEST["password2"] ) && $_REQUEST["password"] != $_REQUEST["password2"] ) { + $passwordErrors['password2'] = tra("The passwords didn't match"); + } if (!$this->isValid() || isset($pParamHash['password']) ) { $passswordError = $this->verifyPasswordFormat( $pParamHash['password'] ); } |
