0

我正在将一个旧项目升级到 Laravel 5.7。用户密码以前是用散列的bcrypt。在新的设置散列驱动程序设置为bcrypt在配置文件中,但仍然收到以下错误。

local.ERROR: This password does not use the Argon2id algorithm. {"exception":"[object] (RuntimeException(code: 0): This password does not use the Argon2id algorithm. at vendor/laravel/framework/src/Illuminate/Hashing/Argon2IdHasher.php:20

Auth::attempt()返回true,但登录不会在重定向时保持不变。

4

2 回答 2

1

我读过一些关于人们对此有问题的帖子。也许这个github问题会帮助你,他们有类似的问题:https ://github.com/laravel/framework/issues/25586

编辑:这也可能有帮助,https://github.com/laravel/framework/issues/24162

于 2018-09-17T06:57:39.203 回答
0

利用

Hash::make($request->password);,

当您散列密码时。它可以提供帮助

于 2018-09-30T12:35:15.227 回答