fix: 去除密码校验允许密码5位 admin
This commit is contained in:
@@ -28,8 +28,8 @@ export const regExpUserName = /^[A-Za-z0-9]{6,}$/;
|
||||
*
|
||||
* 密码至少包含大小写字母、数字、特殊符号,且不少于6位
|
||||
*/
|
||||
export const regExpPasswd =
|
||||
/^(?![A-Za-z0-9]+$)(?![a-z0-9\W]+$)(?![A-Za-z\W]+$)(?![A-Z0-9\W]+$)[a-zA-Z0-9\W]{6,}$/;
|
||||
export const regExpPasswd = /^.{5,}$/;
|
||||
// /^(?![A-Za-z0-9]+$)(?![a-z0-9\W]+$)(?![A-Za-z\W]+$)(?![A-Z0-9\W]+$)[a-zA-Z0-9\W]{6,}$/;
|
||||
|
||||
/**
|
||||
* 有效手机号格式
|
||||
|
||||
@@ -89,7 +89,7 @@ function fnFinish() {
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
min: 6,
|
||||
min: 5,
|
||||
max: 26,
|
||||
message: t('views.account.settings.oldPasswordTip'),
|
||||
},
|
||||
|
||||
@@ -174,7 +174,7 @@ function fnChangeLocale(e: any) {
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
min: 6,
|
||||
min: 5,
|
||||
max: 26,
|
||||
message: t('valid.passwordPlease'),
|
||||
},
|
||||
|
||||
@@ -169,7 +169,7 @@ onMounted(() => {
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
min: 6,
|
||||
min: 5,
|
||||
max: 26,
|
||||
validator: fnEqualToPassword,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user