mirror of https://github.com/certd/certd
pref: 优化重置管理员密码后打印出用户名,避免忘记用户名的情况
parent
709105120c
commit
8cbab7525a
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue