magento后台登录不了

3.22K 浏览M2交流区magento2.4.2 后台登录

magento后台登录不了

如图,本地安装后,后台登录不了。

尝试过管理员解锁命令新增管理员修改管理员密码修改cookie域等方法;

但是还是登录不了,始终都提示图片显示的

已回答
0

M2后台登录用户名和密码都是默认有有效期的。到期后 就登录不了 提示要修改密码。

也有可能是密码不对。

1,先强制登录(临时修改下源码)

Go to this file path and vendorzendframeworkzend-cryptsrcUtils.php and echo $expected and $actual variable and check both are same or not if both variable are not match then change line no 35

if (function_exists('hash_equals')) { return hash_equals($expected, $actual); }

To

if (function_exists('hash_equals')) { return true; }

2,登陆进去后修改下Configuration

Configuration->ADVANCED->Admin->Security

Admin Account Sharing 设为 yes

Admin Session Lifetime (seconds) 设为最大值 31536000

Password Lifetime (days) 设为空

保存后,再还原之前改的源代码

发表新评论

谢谢楼主,已解决

0
您正在查看1个回答中的1个,单击此处查看所有回答。