Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Force Users to Change Passwords in WordPress – Expire Password

Making your WordPress site more secure is always a smart move.

One effective way to do this is by requiring users to change their passwords regularly. This simple step can make it much tougher for hackers to break in.

Regular password changes protect your data and your users’ information. They also add an extra layer of security to your site. By expiring passwords after a certain period, you help keep everyone safer.

In this guide, we’ll walk you through how to force users to change passwords in WordPress.

force-users-to-change-passwords-og

When and Why Force WordPress Users to Change Passwords?

80% of data breaches involve weak or stolen passwords. Luckily, regular password changes disrupt hackers’ attempts.

Hackers will try to repeatedly access your account regularly over a period of time. In this case, you’ll prevent brute-force attacks made by people with malicious intent.

Most new users are prone to using weak passwords or the same password as their other accounts since they’re easy to remember. If a hacker gets into your WordPress site, it can compromise the security of all other users.

But forcing password changes shouldn’t just apply to admin users. It should also apply to membership users and returning customers. For example, when customers register on your WooCommerce store or membership site, they receive the password via email. Forcing regular password changes can help reduce the risk of phishing attempts made through email.

Also, if you run a multi-user WordPress site, then you should ask users to update passwords after a specific amount of time.

On the other hand, if you recently noticed suspicious activity on your WordPress site, then you should immediately expire all existing user passwords and ask everyone to update their passwords.

Expert Tip: Are you worried your site has been hacked? Let our WordPress security experts fix your website and get it back on track. We’ll clean up any harmful code, files, and malware so your sensitive information stays secure. Take action now and protect your site with our dedicated Hacked Site Repair services!

With that in mind, let’s see how you can expire passwords and force users to change passwords in WordPress.

Force Users to Change Passwords in WordPress

The best way to force users to change passwords in WordPress is by using the Password Policy Manager plugin. It allows you to easily create and enforce strong and secure password policies.

Password Policy Manager plugin

To get started, you’ll need to install and activate the Password Policy Manager plugin. For more details, check out our tutorial on how to install a WordPress plugin.

From here, you’ll need to head over to the Password Policy Manager » Password Policy Manager page. Then, under the Policy Settings » For All Users tab, you’ll see various password policy settings that you can set.

First, let’s ensure that you turn on the big toggle button that says ‘Enable all settings.’ Below that, you can check off all the password policy rules that you want to enforce every time a new user needs to create a new password.

The options include:

  • Must contain lower and uppercase letters
  • Must contain numeric digits
  • Must contain special characters
  • Length of password between 8 and 25

We recommend keeping these boxes checked off since these are best practices for having a strong password. You may also want to read our guide on how to add a simple user password generator in WordPress.

Password policy settings

Below that, you’ll need to check the box that says ‘Force Reset Password on first login.’ This helps to prevent new users from using the same password as their other online accounts and ensures they set up a strong password right off the bat.

Then, you’ll need to turn on the ‘Enable Password Expiry’ option so that you set a specific expiration time that forces all site users to change their password. Next to that, you can set the number of weeks you’d like to force the change.

Once done, you can hit the ‘Save Settings’ button.

enable password expiry

Underneath the save settings, you’ll see an option to reset your password with one click. If you or your users haven’t reset your password in a while, it’s a good idea to click the ‘Reset Password’ button.

This will automatically terminate all logged-in sessions from users and force them to reset their passwords.

one click reset password

Then, all users will receive an email with a link to reset their passwords.

All they have to do is just click the link in the email.

reset password email

This will open the WordPress login screen, where you enter your current and new password.

We recommend using a secure password generator instead of trying to create one you can memorize. You can then use a password manager like 1Password to store it.

From here, you can click ‘Change Password.’

reset password

This will take you back to your WordPress login page, where you can enter your new credentials.

You can go to the Password Policy Manager » Reports page to track all the login attempts made by users. We recommend checking it periodically to see if any suspicious attempts have been made to your WordPress site. If so, you can easily perform the one-click reset we’ve just mentioned.

To see data, you’ll need to toggle the ‘Enable Report Entry’ tab.

enable report entry

And that’s it! You’ve now successfully set up your WordPress site so that it forces all users to change passwords after the expiration date.

Troubleshooting Tips

Sometimes, things don’t go as smoothly as planned. Here are some troubleshooting tips to help you navigate any issues that might come up.

What If My Users Never Receive Their Emails?

In case your users are not receiving email notifications to reset their passwords, then any number of things could be happening. Please take a look at our guide on how to fix WordPress not sending email issue.

What If I Can’t Get Into the WordPress Admin Area To Reset My Password?

If you somehow can’t get inside the WordPress admin area, then take a look at our guide on what to do when you are locked out of the WordPress admin area.

We hope this article helped you learn how to force users to change passwords in WordPress. You may also want to see our ultimate WordPress security guide to help improve your website security or our list of the most common WordPress errors and how to fix them.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

12 CommentsLeave a Reply

  1. Dennis Muthomi

    Nice article on password changes in WordPress!
    I am a site admin managing some few client sites and I’ve had password changes set up for a while but I didn’t know you could force a reset on first login.
    This is a great security feature I’ll be adding to my client sites(and my own site too).
    Thanks for the thorough guide!
    I have learned something new today

  2. Dayo Olobayo

    I’m impressed by the user-friendliness of the Password Policy Manager plugin. In your experience please, have you encountered any resistance from users when enforcing stricter password guidelines? If yes, how can website admins effectively address these concerns? Thank you.

    • WPBeginner Support

      Most users tend to be fine with a stricter password requirement as long as it is not excessive in terms of requirements.

      Admin

      • Dayo Olobayo

        Thank you for your feedback. I agree, balancing security with user convenience is key to minimizing resistance.

  3. Marko

    Article need update.

    • WPBeginner Support

      Thank you for letting us know, we will look into updating the article when we are able :)

      Admin

  4. Shallum Vohr

    How to force user to update password on first login only?

  5. Millie Aveyard

    Very difficult for older people like me, to remember all the different passwords in their lives! Everything these days seem to have passwords of one form or another!

    Even if you write the passwords down in your little book, at the time you need the new password, you have left the little book in the car, and the roundabout starts once more!

    I can’t be the only one to have to stop and think about all the different passwords that I use each day!

    • WPBeginner Support

      Please see our guide on how to manage passwords for WordPress beginners. We use LastPass to store and manage all our passwords. It is a browser extension that sits in your web browser. It can save and automatically fill in your passwords for you. It can also generate strong passwords for you when you are creating a new account.

      Admin

  6. Remi

    Very nice idea! It’s a great to give more security to the administration!

  7. Daniel

    Good post – I have now configured the plugin on my blog site. I would strongly recommend also the following:

    1) You remove the admin user altogether – here you create another user who has the admin role, login as them the delete the existing admin user; ensuring you click on the option to transfer admin’s previous posts to you
    2) The ‘admin’ ( role user) password is complex – use oninepasswordgenerator.com or similar
    3) finally, you must must,mus,t install the “Limit Login attempts” plugin … This is a work of genius and is regularly blocking the 10 or so attempts per day to login into my blog. Set long lockout times and get the plugin to email you (new admin user ) after 2 lockouts

  8. Navneet

    This is a very good post ……

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.