Fix bcrypt cost at 12 so the absent-user hash matches login timing

This commit is contained in:
Constantin Graf
2026-11-13 13:03:28 +01:00
committed by Gregor Vostrak
parent f845c9001b
commit cc23cdc76b
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ class FortifyServiceProvider extends ServiceProvider
* Hash of a random value that is checked when no user exists for the email,
* so login takes the same time whether the email is registered or not.
*/
private const ABSENT_USER_PASSWORD_HASH = '$2y$12$PtSQLk/QWOJJpg42pGEkt.TTR7NwCq0.g/0EOWb2B6eDww4zR92.2';
private const string ABSENT_USER_PASSWORD_HASH = '$2y$12$PtSQLk/QWOJJpg42pGEkt.TTR7NwCq0.g/0EOWb2B6eDww4zR92.2';
/**
* Register any application services.

View File

@@ -31,7 +31,7 @@ return [
*/
'bcrypt' => [
'rounds' => env('BCRYPT_ROUNDS', 12),
'rounds' => 12,
'verify' => true,
],