Skip to content
Permalink
Browse files

Fix password checking when creating users

Fixes #24925
  • Loading branch information...
atrol committed Nov 2, 2018
1 parent 5bc35df commit 08087f8b2925274e173173ea994bff217cf7fc92
Showing with 5 additions and 4 deletions.
  1. +5 −4 manage_user_create.php
@@ -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' ) );

0 comments on commit 08087f8

Please sign in to comment.
You can’t perform that action at this time.