• I’m testing a variety of cases and have found that I’m not getting the correct error messages for the conditions.

    Whether I try leaving the username empty, or using an existing username, or too short a username, I only ever get “Invalid username”

    Same issue with email address — already registered, illegal characters/formatting, or blank, I just get “Invalid email address”

    I think the fix needs to be in user-frontend/inc/action-register.php but I can’t seem to figure out how to change it.

    https://wordpress.org/plugins/user-frontend/

Viewing 1 replies (of 1 total)
  • Plugin Author wpcodingde

    (@wpcodingde)

    Hello there,

    sorry for the huge and unforgivable delay and lack of support. I’ll do my best to change this in 2015.

    Hm. I am forking the WordPress registration here so I have to work with that, what WordPress gives back:

    // validate wpmu
    $result = uf_validate_user_form();
    extract( $result );
    if ( $errors->get_error_code() ) {

    The method $errors->get_error_code() returns ‘user_name’ as error code. Maybe I need to fork more of the core for this plugin to have better error messages. But I think that this will lead to a bloaty plugin. I’m afraid I don’t want this.

    But if I stumble upon a solution, I’ll fix this.

    Best regards,
    Thomas

Viewing 1 replies (of 1 total)
  • The topic ‘Incorrect error messages on register’ is closed to new replies.