• Resolved Lorenz

    (@lorenz79)


    Hello Everybody
    I have a little group of user (about 360 users)
    They are pretty old and not so expert of web
    Often they made some error at login
    So i need to explain better the type of error that they done.
    For example
    “user name error”
    or
    In user name it’s present the space
    Or in user name it’s missing the Charatter “.”

    and for me it’s important that this massage appair before they push a botton “login”

    I think i need write something in file functions.php
    can you help me?
    Thanks in advanced

    PS
    now there is only a message
    “Password is incorrect. Please try again.”

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @lorenz79

    At the current version of UM, it’s not possible to display error messages before you click on the “Login” button. The form is not validated until the login button is clicked. But if you still which to change error messages, you can use the code snippets on this link and change the message texts.

    If you are not sure how to use the snippet, you can simply install this plugin and activate it. Now you can navigate to wp-admin > snippets > add new, add a title and paste the codes in “Code” input box, and click on “Save and activate” button.

    Thread Starter Lorenz

    (@lorenz79)

    hello
    thanks for fast answer
    Yes, I know snippets plugin
    but it’s not possible use because the the message
    ““Password is incorrect. Please try again.””
    of error is generic
    means that does metter if you made a mistache in account or password,
    everytime show only this message.
    so i need implemented a filter in functions.php
    to filter different type of errors.

    like:
    /**
    **
    * Ultima member ,show messagge username is not correct
    */

    add_filter( ‘authenticate’, ‘my_check_username’, 50, 3);

    function my_check_username( $user,$username, $errors ) {

    if ( $user->get_error_code() == ‘invalid_username’ ){

    UM()->form()->add_error( ‘invalid_username’, ‘Usernamen not correct. Please try again’ );
    }

    }

    But i need support for the rest..

    Plugin Support Aswin Giri

    (@aswingiri)

    Hello @lorenz79

    Please refer to this link for login error codes.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘customize message error at login’ is closed to new replies.