The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix: Email case sensitivity (#2229)
Gaurav71dd6eb0a854
diff --git a/front/src/modules/auth/sign-in-up/hooks/useSignInUp.tsx b/front/src/modules/auth/sign-in-up/hooks/useSignInUp.tsxindex d863a777294..7d8212bdcd6 100644--- a/front/src/modules/auth/sign-in-up/hooks/useSignInUp.tsx+++ b/front/src/modules/auth/sign-in-up/hooks/useSignInUp.tsx@@ -100,7 +100,7 @@ export const useSignInUp = () => {const continueWithCredentials = useCallback(() => {checkUserExistsQuery({variables: {- email: form.getValues('email'),+ email: form.getValues('email').toLowerCase(),},onCompleted: (data) => {if (data?.checkUserExists.exists) {@@ -121,10 +121,13 @@ export const useSignInUp = () => {}let user;if (signInUpMode === SignInUpMode.SignIn) {- user = await signInWithCredentials(data.email, data.password);+ user = await signInWithCredentials(+ data.email.toLowerCase(),+ data.password,+ );} else {user = await signUpWithCredentials(- data.email,+ data.email.toLowerCase(),data.password,workspaceInviteHash,);