mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-12-06 17:52:16 +00:00
Fix bcrypt cost at 12 so the absent-user hash matches login timing
This commit is contained in:
committed by
Gregor Vostrak
parent
f845c9001b
commit
cc23cdc76b
@@ -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.
|
||||
|
||||
@@ -31,7 +31,7 @@ return [
|
||||
*/
|
||||
|
||||
'bcrypt' => [
|
||||
'rounds' => env('BCRYPT_ROUNDS', 12),
|
||||
'rounds' => 12,
|
||||
'verify' => true,
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user