mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
pref: 优化重置管理员密码后打印出用户名,避免忘记用户名的情况
This commit is contained in:
@@ -31,7 +31,8 @@ export class ResetPasswdMiddleware implements IWebMiddleware {
|
||||
const newPasswd = '123456';
|
||||
await this.userService.resetPassword(1, newPasswd);
|
||||
await this.userService.updateStatus(1, 1);
|
||||
logger.info(`重置1号管理员用户的密码完成,新密码为:${newPasswd}`);
|
||||
const user = await this.userService.info(1);
|
||||
logger.info(`重置1号管理员用户的密码完成,用户名:${user.username},新密码:${newPasswd}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user