mirror of https://github.com/certd/certd
				
				
				
			Merge remote-tracking branch 'origin/v2-dev' into v2-dev
						commit
						3fb9524cbd
					
				| 
						 | 
				
			
			@ -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