DONE: fix bypass password on production not working

This commit is contained in:
ISMAIL MASSERAN
2026-07-16 11:55:10 +08:00
parent d0f5e368e3
commit dedef1370b
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();