• Resolved naimeshrao

    (@naimeshrao)


    Hi There,

    1st Question
    Please guide me to add same Password Field Validation for Forgot password page as I have Added in Registration Page.

    2nd Question
    Is there any way to change default validation of any black field.
    Example:
    Username is required TO Please fill out suitable username

    Please help me ASAP.

    Thank you!

    • This topic was modified 3 years, 9 months ago by naimeshrao.
    • This topic was modified 3 years, 9 months ago by naimeshrao.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @naimeshrao

    1. It’s not clear. Could you please provide a screenshot?

    2. You can use the following filter hook to modify the text:
    + um_submit_form_error
    – $error
    – $key

    Sample usage:

    add_filter("um_submit_form_error", function( $error, $key ){
        
        if( 'Username is required' == $error ){
           UM()->form()->errors[ $key ] = 'Username is required TO Please fill out suitable username'
            
        }
    
        return $error;
    },8999999, 2);
    Thread Starter naimeshrao

    (@naimeshrao)

    Than you for replay:

    Screenshot: https://ibb.co/V2Xztjn

    Registration Page have Password field which has Strong Password Validation:
    A combination of one Lowercase letter one Uppercase letter, One number, Minimum length 8 characters

    And on Password Reset Page:
    There is no Strong Password validation, It accept 1234 as Password.

    So I want Reset Password page have same validation as Register Page.

    Hope you understand.
    Thank you!

    • This reply was modified 3 years, 9 months ago by naimeshrao.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @naimeshrao

    Have you tried turning on the option “Require a strong password? (when user resets password only)”? Go to WP Admin > Ultimate Member > Settings > General > Users > see “Require a strong password? (when user resets password only) “.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @naimeshrao

    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 ‘How to set validation in Forgot Password page.’ is closed to new replies.