Skip to content

Commit

Permalink
Fix password checking when creating users
Browse files Browse the repository at this point in the history
Fixes #24925
  • Loading branch information
atrol committed Nov 2, 2018
1 parent 5bc35df commit 08087f8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions manage_user_create.php
Expand Up @@ -66,11 +66,12 @@
trigger_error( ERROR_USER_CREATE_PASSWORD_MISMATCH, ERROR );
}

# Password won't to be sent by email. It entered by the admin
# Password won't be sent by email. It is entered by the admin
# Now, if the password is empty, confirm that that is what we wanted
if( is_blank( $f_password ) &&
( ON != config_get( 'send_reset_password' ) ) ||
( ON != config_get( 'enable_email_notification' ) ) ) {
if( is_blank( $f_password ) && (
ON != config_get( 'send_reset_password' ) ||
ON != config_get( 'enable_email_notification' ) )
) {
helper_ensure_confirmed(
lang_get( 'empty_password_sure_msg' ),
lang_get( 'empty_password_button' ) );
Expand Down

0 comments on commit 08087f8

Please sign in to comment.