|
@@ -87,7 +87,8 @@ export class AuthController {
|
|
throw new CustomException(ErrorCode.ERR_10004);
|
|
throw new CustomException(ErrorCode.ERR_10004);
|
|
}
|
|
}
|
|
// 修改密码
|
|
// 修改密码
|
|
- await this.userService.resetPassword(req.user.id, body.newPassword);
|
|
|
|
|
|
+ // console.log('user', req.user);
|
|
|
|
+ await this.userService.resetPassword(req.user.userId, body.newPassword);
|
|
// 修改密码后退出登录
|
|
// 修改密码后退出登录
|
|
await this.authService.logout(req.user);
|
|
await this.authService.logout(req.user);
|
|
return true;
|
|
return true;
|