即使驱动程序设置为 bcrypt,散列函数也会检查 argon2id
Hashing functions checks for argon2id even when driver set to bcrypt
我正在将一个旧项目升级到 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()
returns true
但 login 不会在重定向时保留。
我读过一些关于人们对此有疑问的帖子。也许这个 github 问题会帮助你,他们有类似的问题:https://github.com/laravel/framework/issues/25586
编辑:这也可能有帮助,https://github.com/laravel/framework/issues/24162
使用
Hash::make($request->password);
,
当您对密码进行哈希处理时。它可以帮助
我正在将一个旧项目升级到 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()
returns true
但 login 不会在重定向时保留。
我读过一些关于人们对此有疑问的帖子。也许这个 github 问题会帮助你,他们有类似的问题:https://github.com/laravel/framework/issues/25586
编辑:这也可能有帮助,https://github.com/laravel/framework/issues/24162
使用
Hash::make($request->password);
,
当您对密码进行哈希处理时。它可以帮助