新增邮件群发和数据可视化
This commit is contained in:
@@ -38,7 +38,7 @@ const loginService = {
|
||||
throw new BizError('非法邮箱域名');
|
||||
}
|
||||
|
||||
const accountRow = await accountService.selectByEmailIncludeDel(c, email);
|
||||
const accountRow = await accountService.selectByEmailIncludeDelNoCase(c, email);
|
||||
|
||||
if (accountRow && accountRow.isDel === isDel.DELETE) {
|
||||
throw new BizError('该邮箱已被注销');
|
||||
@@ -60,7 +60,7 @@ const loginService = {
|
||||
|
||||
await userService.updateUserInfo(c, userId, true);
|
||||
|
||||
await accountService.insert(c, { userId: userId, email });
|
||||
await accountService.insert(c, { userId: userId, email, name: emailUtils.getName(email) });
|
||||
},
|
||||
|
||||
async login(c, params) {
|
||||
@@ -110,7 +110,6 @@ const loginService = {
|
||||
|
||||
}
|
||||
|
||||
|
||||
await userService.updateUserInfo(c, userRow.userId);
|
||||
|
||||
await c.env.kv.put(KvConst.AUTH_INFO + userRow.userId, JSON.stringify(authInfo), { expirationTtl: constant.TOKEN_EXPIRE });
|
||||
|
||||
Reference in New Issue
Block a user