Tag Info

New answers tagged

0

You may want to use the validate_password_reset hook instead. Try add_action( 'validate_password_reset' , 'se_password_min_length_check' 10, 2 ); function se_password_min_length_check( $errors, $user){ if(strlen($_POST['pass1']) < 8) $errors->add( 'password_too_short', 'ERROR: password is too short.' ); }



Top 50 recent answers are included