Skip to content

Commit 21a8373

Browse files
committed
add on rehash on login
1 parent ae9e287 commit 21a8373

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

config/hashing.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,17 @@
5151
'verify' => true,
5252
],
5353

54+
/*
55+
|--------------------------------------------------------------------------
56+
| Rehash On Login
57+
|--------------------------------------------------------------------------
58+
|
59+
| Setting this option to true will tell Laravel to automatically rehash
60+
| the user's password during login if the configured work factor for
61+
| the algorithm has changed, allowing graceful upgrades of hashes.
62+
|
63+
*/
64+
65+
'rehash_on_login' => true,
66+
5467
];

0 commit comments

Comments
 (0)