{"id":393,"date":"2019-04-19T06:07:59","date_gmt":"2019-04-19T06:07:59","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/04\/19\/disable-password-expiration-in-magento-2\/"},"modified":"2025-05-22T16:57:42","modified_gmt":"2025-05-22T11:27:42","slug":"disable-password-expiration-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/disable-password-expiration-in-magento-2\/","title":{"rendered":"How to Disable Password Expiration in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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, &#8220;it&#8217;s time to change your password&#8221; is annoying for the developers working in the development environment or on a demo server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento 2 admin is requested to change the password from time to time for security purpose. It&#8217;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 <b><i>disable password expiration in Magento 2<\/i><\/b> with the below method:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> We would not recommend disabling password expiration in Magento 2 live\/production mode!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method to Disable Password Expiration in Magento 2:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <strong>Admin Panel &gt; Stores &gt; Configuration &gt; Advanced &gt; Admin<\/strong>.<\/li>\n\n\n\n<li>Leave the &#8220;<strong>Password Lifetime(days)<\/strong>&#8221; field empty to disable the password expiration.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/1_Password-Lifetime.png\" alt=\"Password Lifetime\" class=\"wp-image-4903\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Doing so, you won&#8217;t be asked to change your password!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In case you set the number of days for &#8220;Password Lifetime&#8221;, and set the dropdown value of &#8220;Password Change&#8221; to &#8220;<strong>Recommended<\/strong>&#8220;, it won&#8217;t be mandatory to change the password. However, if the dropdown value is set to &#8220;<strong>Forced<\/strong>&#8220;, the admin panel will be accessed only after the password change.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/2_Password-Change.png\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/2_Password-Change.png\" alt=\"Password Change\" class=\"wp-image-4904\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Hence, if the forced method is too much for you, set it to recommended and you can continue the administration tasks easily!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also refer to the video tutorial to Disable Password Expiration in Magento 2 from our <a href=\"https:\/\/www.youtube.com\/playlist?list=PLBTOxSAJzwEjM5MilmEqj98Ib80tKBu7r\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 video tutorial<\/a> series:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Disable Password Expiration in Magento 2\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/mapouua6eqY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thank You!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":15463,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/393\/revisions\/15463"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}