修改注册密码长度限制

This commit is contained in:
eoao
2025-07-18 21:18:12 +08:00
parent 196fb4a6b5
commit 249edb9e19

View File

@@ -42,8 +42,8 @@ const loginService = {
throw new BizError('邮箱长度超出限制'); throw new BizError('邮箱长度超出限制');
} }
if (password.length <= 6) { if (password.length < 6) {
throw new BizError('密码必须大于6位'); throw new BizError('密码至少6位');
} }
if (!c.env.domain.includes(emailUtils.getDomain(email))) { if (!c.env.domain.includes(emailUtils.getDomain(email))) {