Browse Source

closes: #8910 (#9031)

pull/9038/head
Yaten Dhingra 4 months ago committed by GitHub
parent
commit
5fc2c11842
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-gui/pages/signin.vue
  2. 2
      packages/nc-gui/pages/signup/[[token]].vue

2
packages/nc-gui/pages/signin.vue

@ -31,7 +31,7 @@ const formRules: Record<string, RuleObject[]> = {
{ {
validator: (_: unknown, v: string) => { validator: (_: unknown, v: string) => {
return new Promise((resolve, reject) => { 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'))) reject(new Error(t('msg.error.signUpRules.emailInvalid')))
}) })

2
packages/nc-gui/pages/signup/[[token]].vue

@ -37,7 +37,7 @@ const formRules = {
{ {
validator: (_: unknown, v: string) => { validator: (_: unknown, v: string) => {
return new Promise((resolve, reject) => { 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'))) reject(new Error(t('msg.error.signUpRules.emailInvalid')))
}) })

Loading…
Cancel
Save