Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2008 06:12:26 PM (18 years ago)
Author:
apeatling
Message:

Fixes #149

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-settings.php

    r502 r513  
    2525                // Form has been submitted and nonce checks out, lets do it.
    2626               
    27                 if ( !empty($_POST['email']) ) {
     27                if ( $_POST['email'] != '' ) {
    2828                        $current_user->user_email = wp_specialchars( trim( $_POST['email'] ));
    2929                }
    30                
    31                 if ( !empty($_POST['pass1']) && !empty($_POST['pass2']) ) {
     30
     31                if ( $_POST['pass1'] != '' && $_POST['pass2'] != '' ) {
    3232                        if ( $_POST['pass1'] == $_POST['pass2'] && !strpos( " " . $_POST['pass1'], "\\" ) ) {
    3333                                $current_user->user_pass = $_POST['pass1'];
     
    3535                                $pass_error = true;
    3636                        }
    37                 } else if ( empty($_POST['pass1']) && !empty($_POST['pass2']) || !empty($_POST['pass1']) && empty($_POST['pass2']) ) {
     37                } else if ( $_POST['pass1'] == '' && $_POST['pass2'] != '' || $_POST['pass1'] != '' && $_POST['pass2'] == '' ) {
    3838                        $pass_error = true;
     39                } else {
     40                        unset( $current_user->user_pass );
    3941                }
    4042               
Note: See TracChangeset for help on using the changeset viewer.