Forum Replies Created

Viewing 1 replies (of 1 total)
  • a dirty way :
    go to file inc/class-lp-forms-handler.php
    find this function -> public static function register_validate_field
    remove this lines from function :

    if ( ! preg_match( “#[a-zA-Z]+#”, $value ) ) {
    throw new Exception( __( ‘Password must include at least one letter!’, ‘learnpress’ ), 120 );
    }

    if ( ! preg_match( “#[A-Z]+#”, $value ) ) {
    throw new Exception( __( ‘Password must include at least one capitalized letter!’, ‘learnpress’ ), 125 );
    }

    if ( ! preg_match( “#[0-9]+#”, $value ) ) {
    throw new Exception( __( ‘Password must include at least one number!’, ‘learnpress’ ), 125 );
    }

    if ( ! preg_match( ‘#[~!@\#$%^&*()]#’, $value ) ) {
    throw new Exception( __( ‘Password must include at least one of these characters ~!@#$%^&*() !’, ‘learnpress’ ), 125 );
    }

Viewing 1 replies (of 1 total)