magento 2 全新安装后显示不正确 url 后端登录错误

incorrect url showing after magento 2 fresh installation with backend login error

我已经在wamp 环境中安装了最新版本的magento 2.0。启用了许多 php 和 运行 所需的 apache 模块。比如重写模块和 mcrypt.so 。 我正在使用 wamp,使用的 php 版本是 5.5 和 apache 2.4 。 当我在这个全新安装中导航时,我的 url 仍然不正确。 他们就像: 示例 后端登录

http://domain/admin_ping/admin/index/index/key/af9c4250635a6d9ff365d4f4eb65bffd75a032bac/

忘记密码

http://domain/admin_ping/admin/auth/forgotpassword/

虽然我确定我有权利 login/password,但我无法登录到后端 我有这个错误:

You did not sign in correctly or your account is temporarily disabled.

当您第一次安装 magento 并设置密码和确认密码时,magento 设置的问题是它在数据库中存储了错误的密码。

解决方案

编辑文件: \vendor\zendframework\zend-crypt\src\Utils.php

并回显变量 $expected$actual 并检查它们是否具有相等的值。

如果是,则不匹配;更改第 35 行:

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

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

用于使用任何密码直接访问 magento admin,然后更改密码并还原代码更改。

这个解决方案对我有用。