Skip to content

Commit

Permalink
Add admin check for users without e-mail
Browse files Browse the repository at this point in the history
Fixes #32940
  • Loading branch information
dregad committed Oct 15, 2023
1 parent c1cbd1d commit be89aa3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions admin/check/check_email_inc.php
Expand Up @@ -94,6 +94,15 @@
}
}

if( OFF == config_get_global( 'allow_empty_email' ) ) {
check_print_test_row(
'All users must have an e-mail address',
!array_key_exists( null, $t_duplicate_emails ),
count( $t_duplicate_emails[null] ) . " users without e-mail address found: "
. implode( ', ', $t_duplicate_emails[null] )
);
}

# Fail check if emails should be unique, just issue a warning otherwise
$t_function = config_get_global( 'email_ensure_unique' )
? 'check_print_test_row'
Expand Down

0 comments on commit be89aa3

Please sign in to comment.