break60 před 4 roky
rodič
revize
8f258370e0

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

@@ -155,8 +155,8 @@
         
         let userNameLength = this.userName.length
         // user name
-        if (userNameLength<3) {
-          this.$message.warning(`${i18n.$t('Username length cannot be less than 3')}`)
+        if (userNameLength<3 && userNameLength>60) {
+          this.$message.warning(`${i18n.$t('User name length is between 3 and 60')}`)
           return false
         }
         if (!this.userName.replace(/\s*/g,"")) {

+ 1 - 1
dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js

@@ -595,5 +595,5 @@ export default {
   'Please delete all non-existent resources': 'Please delete all non-existent resources',
   'The Worker group no longer exists, please select the correct Worker group!': 'The Worker group no longer exists, please select the correct Worker group!',
   'Please confirm whether the workflow has been saved before downloading': 'Please confirm whether the workflow has been saved before downloading',
-  'Username length cannot be less than 3': 'Username length cannot be less than 3'
+  'User name length is between 3 and 60': 'User name length is between 3 and 60'
 }

+ 1 - 1
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

@@ -595,5 +595,5 @@ export default {
   'Please delete all non-existent resources': '请删除所有未授权或已删除资源',
   'The Worker group no longer exists, please select the correct Worker group!': '该Worker分组已经不存在,请选择正确的Worker分组!',
   'Please confirm whether the workflow has been saved before downloading': '下载前请确定工作流是否已保存',
-  'Username length cannot be less than 3': '用户名长度不能小于3'
+  'User name length is between 3 and 60': '用户名长度在3~60之间'
 }