fix: 用户账号规则修改允许数字开头至少6位
This commit is contained in:
@@ -1609,7 +1609,7 @@ export default {
|
|||||||
loginIp: 'Login Address',
|
loginIp: 'Login Address',
|
||||||
loginTime: 'Login Time',
|
loginTime: 'Login Time',
|
||||||
status: 'Status',
|
status: 'Status',
|
||||||
userNameTip:'The account cannot start with a number and can contain uppercase and lowercase letters, numbers, and no less than 5 digits',
|
userNameTip:'The account number can only contain strings of uppercase letters, lowercase letters and numbers with a minimum length of 6 digits',
|
||||||
passwdTip:'The password should contain at least uppercase and lowercase letters, numbers, special symbols, and no less than 6 digits',
|
passwdTip:'The password should contain at least uppercase and lowercase letters, numbers, special symbols, and no less than 6 digits',
|
||||||
nickNameTip:'Nicknames no less than 2 digits',
|
nickNameTip:'Nicknames no less than 2 digits',
|
||||||
emailTip:'Please enter the correct email address',
|
emailTip:'Please enter the correct email address',
|
||||||
|
|||||||
@@ -1609,7 +1609,7 @@ export default {
|
|||||||
loginIp: '登录地址',
|
loginIp: '登录地址',
|
||||||
loginTime: '登录时间',
|
loginTime: '登录时间',
|
||||||
status: '用户状态',
|
status: '用户状态',
|
||||||
userNameTip:'账号不能以数字开头,可包含大写小写字母,数字,且不少于5位',
|
userNameTip:'账号只能包含大写字母、小写字母和数字的字符串,长度至少为6位',
|
||||||
passwdTip:'密码至少包含大小写字母、数字、特殊符号,且不少于6位',
|
passwdTip:'密码至少包含大小写字母、数字、特殊符号,且不少于6位',
|
||||||
nickNameTip:'昵称不少于2位',
|
nickNameTip:'昵称不少于2位',
|
||||||
emailTip:'请输入正确的邮箱地址',
|
emailTip:'请输入正确的邮箱地址',
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ export const regExpPort =
|
|||||||
/**
|
/**
|
||||||
* 有效账号格式
|
* 有效账号格式
|
||||||
*
|
*
|
||||||
* 账号不能以数字开头,可包含大写小写字母,数字,且不少于5位
|
* 账号只能包含大写字母、小写字母和数字的字符串,长度至少为6位
|
||||||
*/
|
*/
|
||||||
export const regExpUserName = /^[a-zA-Z][a-z0-9A-Z]{4,}$/;
|
export const regExpUserName = /^[A-Za-z0-9]{6,}$/;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 有效密码格式
|
* 有效密码格式
|
||||||
@@ -91,7 +91,7 @@ export function validURL(str: string) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (u.host.startsWith('.')) {
|
if (u.host.startsWith('.')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ let modalState: ModalStateType = reactive({
|
|||||||
phonenumber: '',
|
phonenumber: '',
|
||||||
postIds: [],
|
postIds: [],
|
||||||
roleIds: [],
|
roleIds: [],
|
||||||
sex: '1',
|
sex: '0',
|
||||||
status: '0',
|
status: '0',
|
||||||
remark: '',
|
remark: '',
|
||||||
createTime: 0,
|
createTime: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user