diff options
| author | wjames5 <will@tekimaki.com> | 2010-02-01 16:49:13 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2010-02-01 16:49:13 +0000 |
| commit | b16d26e73515afa677687f555375e4a6ae012274 (patch) | |
| tree | 15a1003cf5df58dc87fb96088e48fc71bb7a3e77 | |
| parent | 9d120de12392251703ade4c55188b215faa9cc3d (diff) | |
| download | users-b16d26e73515afa677687f555375e4a6ae012274.tar.gz users-b16d26e73515afa677687f555375e4a6ae012274.tar.bz2 users-b16d26e73515afa677687f555375e4a6ae012274.zip | |
pw errors is now an array, handle it; add error feed back for pw match to reg form
| -rw-r--r-- | BitUser.php | 12 | ||||
| -rw-r--r-- | index.php | 6 | ||||
| -rw-r--r-- | templates/register.tpl | 1 |
3 files changed, 11 insertions, 8 deletions
diff --git a/BitUser.php b/BitUser.php index 02f596f..4767f36 100644 --- a/BitUser.php +++ b/BitUser.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.242 2010/02/01 16:27:28 wjames5 Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.243 2010/02/01 16:49:13 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.242 2010/02/01 16:27:28 wjames5 Exp $ + * $Id: BitUser.php,v 1.243 2010/02/01 16:49:13 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.242 $ + * @version $Revision: 1.243 $ * @package users * @subpackage BitUser */ @@ -293,10 +293,10 @@ class BitUser extends LibertyMime { $passwordErrors['password2'] = tra("The passwords didn't match"); } if (!$this->isValid() || isset($pParamHash['password']) ) { - $passswordError = $this->verifyPasswordFormat( $pParamHash['password'] ); + $passwordErrors['password'] = $this->verifyPasswordFormat( $pParamHash['password'] ); } - if( !empty( $passswordError ) ) { - $this->mErrors['password'] = $passswordError; + if( !empty( $passwordErrors ) ) { + $this->mErrors = array_merge( $this->mErrors,$passwordErrors ); } else { // Generate a unique hash //$pParamHash['user_store']['hash'] = md5( strtolower( (!empty($pParamHash['login'])?$pParamHash['login']:'') ).$pPassword.$pParamHash['email'] ); @@ -1,8 +1,8 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/index.php,v 1.39 2009/04/14 17:58:29 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/index.php,v 1.40 2010/02/01 16:49:13 wjames5 Exp $ * - * $Id: index.php,v 1.39 2009/04/14 17:58:29 spiderr Exp $ + * $Id: index.php,v 1.40 2010/02/01 16:49:13 wjames5 Exp $ * @package users * @subpackage functions */ @@ -85,6 +85,8 @@ if( !empty( $_REQUEST['home'] ) && $gQueryUser->isValid() && (( $gBitUser->hasPe // end of content listing } + $gQueryUser->invokeServices( 'content_display_function' ); + // need to load layout now that we can check for center pieces $layoutHash['layout'] = $gQueryUser->getField( 'login' ); $layoutHash['fallback'] = TRUE; diff --git a/templates/register.tpl b/templates/register.tpl index e61bc4b..dd8ab39 100644 --- a/templates/register.tpl +++ b/templates/register.tpl @@ -85,6 +85,7 @@ </div> <div class="row"> + {formfeedback error=$errors.password2} {formlabel label="Repeat password" for="password2"} {forminput} <input id="password2" type="password" name="password2" />{required} |
