Skip to content

Commit

Permalink
fix(auth): remove case sensitive login
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuher committed Dec 15, 2024
1 parent 4fe5bbd commit f184e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/common/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class AuthService {
}

public login$(email: string, password: string): Observable<RecordAuthResponse> {
return from(environment.pb.collection('users').authWithPassword(email, password));
return from(environment.pb.collection('users').authWithPassword(FormatterUtils.valueFormatter(email, 'lower')!, password));
}

public register$(email: string, name: string, password: string): Observable<User> {
Expand Down

0 comments on commit f184e1b

Please sign in to comment.