DONE: fix bypass password on production not working (#14)

Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local>
Reviewed-on: KoPKB/My-KOPKB#14
This commit is contained in:
2026-07-16 11:56:03 +08:00
parent f527ae0729
commit 3b65000841
3 changed files with 44 additions and 107 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ class FortifyServiceProvider extends ServiceProvider
$failLogin();
}
$shouldBypassPassword = config('app.env', 'local');
$shouldBypassPassword = app()->environment('local');
if (! $shouldBypassPassword && ! Hash::check($request->password, $user->password)) {
$failLogin();