We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3eafcc commit 911e537Copy full SHA for 911e537
1 file changed
src/app/features/authentication/services/authentication.service.ts
@@ -39,7 +39,7 @@ export class AuthenticationService {
39
.post<RegisterResponse>(
40
registerEndpoint,
41
{
42
- email: registerRequest.email,
+ email: registerRequest.email.trim().toLowerCase(),
43
password: registerRequest.password,
44
name: registerRequest.name,
45
favouritePokemonId: registerRequest.favouritePokemonId,
@@ -68,7 +68,7 @@ export class AuthenticationService {
68
.post<LoginResponse>(
69
loginEndpoint,
70
71
- email: loginRequest.email,
+ email: loginRequest.email.trim().toLowerCase(),
72
password: loginRequest.password,
73
},
74
{ withCredentials: true },
0 commit comments