Hi guys
how to do it the generated password when i change it to not more than 8 it will throw and error?..
thanks
]]>thanks for the reply..my point is how to limit my password minimum of 8 characters..
]]>The other is the profile/user edit admin screen. For this, the ‘check_passwords’ action is available, but it doesn’t have any mechanism to add errors. All you could do is wp_die() with your message. I suggest you use the ‘user_profile_update_errors’ filter instead. With this filter, the WP_Error object is passed and you can add an error as is done with the reset form. The difference here is the password is passed as part of the a user object. This is not a WP_User instance, rather a PHP standard class object. The password submitted is $user->user_pass
.
thanks for the reply., where can i put my code on the function.php??..
can you give me also sample on how to do that??..thanks
I’m sorry I don’t have any examples. If you understand how basic action hooks are structured and have a small amount of PHP skills you could likely pull something together. Otherwise you could hire help through places like jobs.wordpress.net or jetpack.pro.
]]>i already found a solution for the problem, i put the code in my function.php is it okey??
]]>Or when you do “update” (as in revise), you know enough to not obliterate your own code ?? For future reference, when creating topics in these forums, it’s frequently useful for us to know that you’re using your own theme.
]]>