Commit 933214a4 authored by 皮倩雯's avatar 皮倩雯

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

parent ffaf81c6
Pipeline #45662 skipped with stages
......@@ -134,7 +134,7 @@ const AddUserModal = props => {
label="账户密码"
rules={[
{
pattern: /^(?=.*[a-zA-Z\d])[!-~]{6,16}$/,
pattern: /^(?=.*[a-zA-Z\d])(?=.*([a-zA-Z].*))(?=.*[0-9].*)[!-~]{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