Forgot password not working

Probably you dont have any mail server installed/enabled (like sendmail/qmail/postfix) in your local machine. You can still reset your admin password from database. The table “wp_users” stores the password in the “user_pass” field You can just replace the value with a md5 hash value of your desired password for the admin user. Note: This is … Read more

Reset password – set minimum length for new password

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.’ ); }

Check Password Reset Key Not Woking

I fixed it. We need decode url with esc_url_raw. Here is solution. <?php $user_data = get_user_by( ’email’, ‘[email protected]’ ) ); $key = get_password_reset_key( $user_data ); $user_login = $user_data->user_login; $url = esc_url_raw( get_permalink( ‘1’ ) . “?action=rp&key=$key&login=” . rawurlencode($user_login) ) . “\r\n”; $message = $url; wp_mail( $user_email, “Title”, $message ); ?>

Force all users in MU to change their passwords

You can use PassExpire force all users to change password at next login. Or set it to expires user passwords after 60 (Variable) days and requires a password change on login. Note: This is community wiki answer for this Question (as @tony-zeoli has already answered his own question).

PasswordHash not found in namespace

Thanks Vee try require_once (ABSPATH . ‘wp-includes/class-phpass.php’); it works for me. It did worked for me too. Came on this thread about a month ago and found no solution so I had to restore from a backup. The problem came back and I’m very happy of your contribution.

Access code/password only restricts page access, no user registration..?

This is a built-in feature of WordPress. Create a page like you normally would. Then look at the Publish box in the upper-right corner for where it says “Visibility: Public.” Click “Public” and you’ll see some other options – “Private” and “Password Protected.” You want “Password Protected.” Check the appropriate box and enter the password … Read more

Hide password protected posts

Both the the_content() and the the_excerpt() template tags already account for password-protected posts, via the post_password_required() conditional. If you need to output content, or comments, etc. outside of the_content()/the_excerpt(), call the post_password_required() conditional directly. For example, if you don’t want the comments template to be output if the post is password-protected. you could do the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)