Commit ffaf81c6 authored by 皮倩雯's avatar 皮倩雯

fix: '修改用户管理用户修改密码正则验证'

parent 94aa75fa
Pipeline #45657 skipped with stages
......@@ -134,7 +134,7 @@ const AddUserModal = props => {
label="账户密码"
rules={[
{
pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z][^ ]{6,16}$/,
pattern: /^(?=.*[a-zA-Z\d])[!-~]{6,16}$/,
message: '密码长度6-16位,且必须包含数字和字母,不能存在空格',
},
{ required: true },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment