Browse Source

fix

pull/3/MERGE
break60 5 years ago
parent
commit
ecb4df4051
  1. 3
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue

3
dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue

@ -154,8 +154,9 @@
let regPassword = /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?![`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]+$)[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、0-9A-Za-z]{6,22}$/; let regPassword = /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?![`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]+$)[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、0-9A-Za-z]{6,22}$/;
let userNameLength = this.userName.length let userNameLength = this.userName.length
console.log(userNameLength)
// user name // user name
if (userNameLength<3 && userNameLength>39) { if (userNameLength<3 || userNameLength>39) {
this.$message.warning(`${i18n.$t('User name length is between 3 and 39')}`) this.$message.warning(`${i18n.$t('User name length is between 3 and 39')}`)
return false return false
} }

Loading…
Cancel
Save