Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento stuck on " It's time to change your password."

I didn't use Magento 2.0.2.0 CE for about 1 month. After that I logged in to admin after, opened my account/Account information page, the title “It's time to change your password.” was shown. When I tried to open my products (or settings page), the similar page “It's time to change your password.” was shown

I changed my password and pressed “Save Account”. And nothing changed, I still see “It's time to change your password.”, all menu items lead to this page “It's time to change your password.”

enter image description here

like image 853
Maxim Kitsenko Avatar asked Aug 03 '16 12:08

Maxim Kitsenko


2 Answers

Run commands in the magento root instead of changing to database:

Disable force password change and password lifetime

php bin/magento config:set admin/security/password_is_forced 0
php bin/magento config:set admin/security/password_lifetime 0

Reindex and Clean the cache

php bin/magento indexer:reindex
php bin/magento c:c
like image 73
Milan Chandro Avatar answered Oct 02 '22 17:10

Milan Chandro


Just run following sql query if path admin/security/password_is_forced exist

UPDATE `core_config_data` SET `value` = '0' WHERE `path` = 'admin/security/password_is_forced';

else

INSERT INTO `core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`) VALUES (NULL, 'default', '0', 'admin/security/password_is_forced', '0');
like image 31
zed Blackbeard Avatar answered Oct 02 '22 17:10

zed Blackbeard