fix: always authenticate with lowercase emails
This commit is contained in:
parent
d3f422a7fb
commit
b8a35be095
1 changed files with 2 additions and 1 deletions
|
|
@ -75,7 +75,8 @@ public function boot(): void
|
||||||
});
|
});
|
||||||
|
|
||||||
Fortify::authenticateUsing(function (Request $request) {
|
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 (
|
if (
|
||||||
$user &&
|
$user &&
|
||||||
Hash::check($request->password, $user->password)
|
Hash::check($request->password, $user->password)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue