Merge pull request #222 from SyncrowIOT/SP-1389-FE-On-Login-page-Email-field-is-case-sensitive-it-should-not-be

Normalize email to lowercase when logging in
This commit is contained in:
mohammadnemer1
2025-06-01 16:38:53 +03:00
committed by GitHub

View File

@ -161,7 +161,7 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
token = await AuthenticationAPI.loginWithEmail(
model: LoginWithEmailModel(
email: event.username,
email: event.username.toLowerCase(),
password: event.password,
),
);