fix(user): ensure email attributes are stored in lowercase for consistency and prevent case-related issues

This commit is contained in:
Andras Bacsai
2025-09-05 17:44:34 +02:00
parent 49bd0a2a01
commit 9c3345318a
3 changed files with 21 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class CreateNewUser implements CreatesNewUsers
$user = User::create([
'id' => 0,
'name' => $input['name'],
'email' => strtolower($input['email']),
'email' => $input['email'],
'password' => Hash::make($input['password']),
]);
$team = $user->teams()->first();
@@ -52,7 +52,7 @@ class CreateNewUser implements CreatesNewUsers
} else {
$user = User::create([
'name' => $input['name'],
'email' => strtolower($input['email']),
'email' => $input['email'],
'password' => Hash::make($input['password']),
]);
$team = $user->teams()->first();