DONE: fix bypass password on production not working (#14)
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local> Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user