perf: 重置管理员密码同时启用管理员账户,避免之前禁用了,重置密码还是登录不进去

This commit is contained in:
xiaojunnuo
2024-10-28 10:26:14 +08:00
parent 13eb0231ac
commit f92d918a1e
4 changed files with 27 additions and 14 deletions
@@ -30,6 +30,7 @@ export class ResetPasswdMiddleware implements IWebMiddleware {
logger.info('开始重置1号管理员用户的密码');
const newPasswd = '123456';
await this.userService.resetPassword(1, newPasswd);
await this.userService.updateStatus(1, 1);
logger.info(`重置1号管理员用户的密码完成,新密码为:${newPasswd}`);
}
}