2011-11-22 202 views
1

我在几个月前开发了一个Magento专业版的网站。经过很长时间我在管理员登录,通过管理密码过期的错误magento。管理员帐户将在多少天内过期,并可以进行管理。管理magento中的管理员帐户

回答

5

转到System->Configuration, ADVANCED->Admin->Security并参见Password Lifetime (days)Password Change字段。

2
UPDATE enterprise_admin_passwords 
SET expires = UNIX_TIMESTAMP() + (365 * 24 * 60 * 60) 

会给每个管理员一年。

清除Cookies,然后重试。

0

@SteveRobbins的查询很好,当它需要重新激活所有的管理用户。

重新激活仅有1管理员用户运行此查询:

UPDATE enterprise_admin_passwords SET expires = UNIX_TIMESTAMP() + (365 * 24 * 60 * 60) WHERE user_id in (select user_id from admin_user where username='YOUR_ADMIN_USERNAME')

或者只是删除enterprise_admin_passwords表中该用户的所有条目:

delete from enterprise_admin_passwords where user_id in (select user_id from admin_user where username='YOUR_ADMIN_USERNAME');