Skip to content

Commit 975c9e2

Browse files
bhavanakarwadetipusinghaw
authored andcommitted
refactor: remove unnecessary loggers (#1070)
* refactor: forgot password API Signed-off-by: bhavanakarwade <[email protected]> * feat: added logger Signed-off-by: bhavanakarwade <[email protected]> * fix: resolve security hotspot issue Signed-off-by: bhavanakarwade <[email protected]> * fix: remove loggers Signed-off-by: bhavanakarwade <[email protected]> --------- Signed-off-by: bhavanakarwade <[email protected]> Signed-off-by: Tipu_Singh <[email protected]>
1 parent 5ebbc01 commit 975c9e2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

apps/api-gateway/src/authz/authz.controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ export class AuthzController {
146146
})
147147
@ApiResponse({ status: HttpStatus.OK, description: 'Success', type: ApiResponseDto })
148148
async forgotPassword(@Body() forgotPasswordDto: ForgotPasswordDto, @Res() res: Response): Promise<Response> {
149-
this.logger.log(`forgotPasswordDto::: ${JSON.stringify(forgotPasswordDto)}`);
150149
const userData = await this.authzService.forgotPassword(forgotPasswordDto);
151150
const finalResponse: IResponseType = {
152151
statusCode: HttpStatus.OK,

apps/user/src/user.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ export class UserService {
439439
*/
440440
async forgotPassword(forgotPasswordDto: IUserForgotPassword): Promise<IResetPasswordResponse> {
441441
const { email, brandLogoUrl, platformName, endpoint } = forgotPasswordDto;
442-
this.logger.log(`forgotPasswordDto::::::: ${forgotPasswordDto}`);
443442
try {
444443
this.validateEmail(email.toLowerCase());
445444
const userData = await this.userRepository.checkUserExist(email.toLowerCase());

0 commit comments

Comments
 (0)