新增设置注册邮箱前缀最小位数

This commit is contained in:
eoao
2025-11-08 22:25:00 +08:00
parent a343a4a08f
commit 56b42d29b3
18 changed files with 192 additions and 43 deletions

View File

@@ -53,7 +53,7 @@ const userService = {
const { password } = params;
if (password < 6) {
throw new BizError(t('pwdMinLengthLimit'));
throw new BizError(t('pwdMinLength'));
}
const { salt, hash } = await cryptoUtils.hashPassword(password);
await orm(c).update(user).set({ password: hash, salt: salt }).where(eq(user.userId, userId)).run();
@@ -304,7 +304,7 @@ const userService = {
}
if (password.length < 6) {
throw new BizError(t('pwdMinLengthLimit'));
throw new BizError(t('pwdMinLength'));
}
const accountRow = await accountService.selectByEmailIncludeDel(c, email);