mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-27 11:03:40 +03:00
parent
f7034d6e7d
commit
036c8c0b36
@ -107,7 +107,7 @@ export const useSignInUp = () => {
|
|||||||
}
|
}
|
||||||
checkUserExistsQuery({
|
checkUserExistsQuery({
|
||||||
variables: {
|
variables: {
|
||||||
email: form.getValues('email').toLowerCase(),
|
email: form.getValues('email').toLowerCase().trim(),
|
||||||
},
|
},
|
||||||
onCompleted: (data) => {
|
onCompleted: (data) => {
|
||||||
if (data?.checkUserExists.exists) {
|
if (data?.checkUserExists.exists) {
|
||||||
@ -130,11 +130,11 @@ export const useSignInUp = () => {
|
|||||||
const { workspace: currentWorkspace } =
|
const { workspace: currentWorkspace } =
|
||||||
signInUpMode === SignInUpMode.SignIn
|
signInUpMode === SignInUpMode.SignIn
|
||||||
? await signInWithCredentials(
|
? await signInWithCredentials(
|
||||||
data.email.toLowerCase(),
|
data.email.toLowerCase().trim(),
|
||||||
data.password,
|
data.password,
|
||||||
)
|
)
|
||||||
: await signUpWithCredentials(
|
: await signUpWithCredentials(
|
||||||
data.email.toLowerCase(),
|
data.email.toLowerCase().trim(),
|
||||||
data.password,
|
data.password,
|
||||||
workspaceInviteHash,
|
workspaceInviteHash,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user