diff --git a/packages/nc-gui/pages/signin.vue b/packages/nc-gui/pages/signin.vue index 752634e56c..cdde347c1e 100644 --- a/packages/nc-gui/pages/signin.vue +++ b/packages/nc-gui/pages/signin.vue @@ -31,7 +31,7 @@ const formRules: Record = { { validator: (_: unknown, v: string) => { return new Promise((resolve, reject) => { - if (!v?.length || validateEmail(v)) return resolve() + if (!v?.length || validateEmail(v.trim())) return resolve() reject(new Error(t('msg.error.signUpRules.emailInvalid'))) }) diff --git a/packages/nc-gui/pages/signup/[[token]].vue b/packages/nc-gui/pages/signup/[[token]].vue index 9004d6319e..7cd8d313a3 100644 --- a/packages/nc-gui/pages/signup/[[token]].vue +++ b/packages/nc-gui/pages/signup/[[token]].vue @@ -37,7 +37,7 @@ const formRules = { { validator: (_: unknown, v: string) => { return new Promise((resolve, reject) => { - if (!v?.length || validateEmail(v)) return resolve() + if (!v?.length || validateEmail(v.trim())) return resolve() reject(new Error(t('msg.error.signUpRules.emailInvalid'))) })