Skip to content

Commit

Permalink
allow user creation without e-mail
Browse files Browse the repository at this point in the history
  • Loading branch information
V1pr committed Apr 15, 2018
1 parent 01b38c1 commit fea867a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/user_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,11 @@ function user_create( $p_username, $p_password, $p_email = '',

user_ensure_name_valid( $p_username );
user_ensure_name_unique( $p_username );
user_ensure_email_unique( $p_email );
email_ensure_valid( $p_email );
email_ensure_not_disposable( $p_email );
if ( ! is_blank($p_email) ) {
user_ensure_email_unique( $p_email );
email_ensure_valid( $p_email );
email_ensure_not_disposable( $p_email );
}

$t_cookie_string = auth_generate_unique_cookie_string();

Expand Down

0 comments on commit fea867a

Please sign in to comment.