Browse Source

fix: correction in email validation (#173)

pull/189/head
“pranavxc” 3 years ago
parent
commit
3dc8802481
  1. 3
      packages/nc-gui/pages/user/authentication/signup/index.vue

3
packages/nc-gui/pages/user/authentication/signup/index.vue

@ -237,7 +237,8 @@ export default {
formRules: {
email: [
v => !!v || 'E-mail is required',
v => /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(v) || 'E-mail must be valid'
// ref : https://stackoverflow.com/a/46181
v => /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(v) || 'E-mail must be valid'
],
password: [
v => (this.PasswordValidate(v)) || this.passwordValidateMsg

Loading…
Cancel
Save