🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Disable Password Expiration in Magento 2

By Sanjay JethvaUpdated on May 22, 2025 3 min read

Magento 2 is a popular E-commerce platform due to its features like scalability, performance and most important, security! However, one of its security features that says, “it’s time to change your password” is annoying for the developers working in the development environment or on a demo server.

Magento 2 admin is requested to change the password from time to time for security purpose. It’s a good feature to keep your online Magento 2 store secure, but in case of the development mode, it can be annoying. You can disable password expiration in Magento 2 with the below method:

Note: We would not recommend disabling password expiration in Magento 2 live/production mode!

Method to Disable Password Expiration in Magento 2:

  1. Navigate to Admin Panel > Stores > Configuration > Advanced > Admin.
  2. Leave the “Password Lifetime(days)” field empty to disable the password expiration.
Password Lifetime

Doing so, you won’t be asked to change your password!

In case you set the number of days for “Password Lifetime”, and set the dropdown value of “Password Change” to “Recommended“, it won’t be mandatory to change the password. However, if the dropdown value is set to “Forced“, the admin panel will be accessed only after the password change.

Password Change

Hence, if the forced method is too much for you, set it to recommended and you can continue the administration tasks easily!

You can also refer to the video tutorial to Disable Password Expiration in Magento 2 from our Magento 2 video tutorial series:

Thank You!

Sanjay Jethva Full Image
Article bySanjay Jethva

Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe. His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.