-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: create user should add limitation for username and password (#787)
Signed-off-by: ryjiang <[email protected]>
- Loading branch information
1 parent
23d51bb
commit 3097afb
Showing
5 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
const warningTrans = { | ||
required: '{{name}} 是必需的', | ||
requiredOnly: '必需的', | ||
positive: '{{name}} 应为正数', | ||
integer: '{{name}} 应为整数', | ||
number: '{{name}} 应为数字', | ||
bool: '{{name}} 应为布尔值`true`或`false`', | ||
range: '范围是 {{min}} ~ {{max}}', | ||
required: '{{name}} 是必填的。', | ||
requiredOnly: '必填的。', | ||
positive: '{{name}} 应为正数。', | ||
integer: '{{name}} 应为整数。', | ||
number: '{{name}} 应为数字。', | ||
bool: '{{name}} 应为布尔值`true`或`false`。', | ||
range: '范围是 {{min}} ~ {{max}}。', | ||
specValueOrRange: | ||
'{{name}} 应为 {{specValue}},或在范围 {{min}} ~ {{max}} 内', | ||
noSupportIndexType: | ||
'Attu 还不支持 {{type}}。请更换其他字段', | ||
'{{name}} 应为 {{specValue}},或在范围 {{min}} ~ {{max}} 内。', | ||
noSupportIndexType: 'Attu 还不支持 {{type}}。请更换其他字段。', | ||
valueLength: '{{name}} 长度应在 {{min}} ~ {{max}} 之间。', | ||
username: ' 用户名不能为空,长度不能超过32个字符。必须以字母开头,只能包含下划线、字母或数字。', | ||
}; | ||
|
||
export default warningTrans; | ||
export default warningTrans; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
const warningTrans = { | ||
required: '{{name}} is required', | ||
requiredOnly: 'Required', | ||
positive: '{{name}} should be positive', | ||
integer: '{{name}} should be integers', | ||
number: '{{name}} should be numbers', | ||
bool: '{{name}} should be boolean value `true` or `false`', | ||
range: 'Range is {{min}} ~ {{max}}', | ||
required: '{{name}} is required.', | ||
requiredOnly: 'Required.', | ||
positive: '{{name}} should be positive.', | ||
integer: '{{name}} should be integers.', | ||
number: '{{name}} should be numbers.', | ||
bool: '{{name}} should be boolean value `true` or `false`.', | ||
range: 'Range is {{min}} ~ {{max}}.', | ||
specValueOrRange: | ||
'{{name}} should be {{specValue}}, or in range {{min}} ~ {{max}}', | ||
'{{name}} should be {{specValue}}, or in range {{min}} ~ {{max}}.', | ||
noSupportIndexType: | ||
'Attu has not supported {{type}} yet. Please change another field', | ||
'Attu has not supported {{type}} yet. Please change another field.', | ||
valueLength: '{{name}} length should be in {{min}} ~ {{max}}.', | ||
username: ' Username must not be empty, and must not exceed 32 characters in length. It must start with a letter, and only contains underscores, letters, or numbers.', | ||
}; | ||
|
||
export default warningTrans; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters