fix: always authenticate with lowercase emails
This commit is contained in:
@@ -75,7 +75,8 @@ class FortifyServiceProvider extends ServiceProvider
|
||||
});
|
||||
|
||||
Fortify::authenticateUsing(function (Request $request) {
|
||||
$user = User::where('email', $request->email)->with('teams')->first();
|
||||
$email = strtolower($request->email);
|
||||
$user = User::where('email', $email)->with('teams')->first();
|
||||
if (
|
||||
$user &&
|
||||
Hash::check($request->password, $user->password)
|
||||
|
Reference in New Issue
Block a user