修改免费试用的跳转逻辑和设置密码的校验
This commit is contained in:
@@ -49,9 +49,9 @@ export function ChangePasswordDialog({
|
||||
const form = useForm<Schema>({
|
||||
resolver: zodResolver(
|
||||
schema.refine(
|
||||
data => /^(?=.*[a-z])(?=.*[A-Z]).{6,}$/.test(data.password),
|
||||
data => /^(?=.*[a-zA-Z])(?=.*\d).{6,}$/.test(data.password),
|
||||
{
|
||||
message: '密码需包含大小写字母,且不少于6位',
|
||||
message: '密码需包含字母和数字,且不少于6位',
|
||||
path: ['password'],
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user