Skip to content

Commit

Permalink
refactor: remove unnecessary loggers (#1070)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
bhavanakarwade authored and tipusinghaw committed Nov 11, 2024
1 parent 5ebbc01 commit 975c9e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/api-gateway/src/authz/authz.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export class AuthzController {
})
@ApiResponse({ status: HttpStatus.OK, description: 'Success', type: ApiResponseDto })
async forgotPassword(@Body() forgotPasswordDto: ForgotPasswordDto, @Res() res: Response): Promise<Response> {
this.logger.log(`forgotPasswordDto::: ${JSON.stringify(forgotPasswordDto)}`);
const userData = await this.authzService.forgotPassword(forgotPasswordDto);
const finalResponse: IResponseType = {
statusCode: HttpStatus.OK,
Expand Down
1 change: 0 additions & 1 deletion apps/user/src/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ export class UserService {
*/
async forgotPassword(forgotPasswordDto: IUserForgotPassword): Promise<IResetPasswordResponse> {
const { email, brandLogoUrl, platformName, endpoint } = forgotPasswordDto;
this.logger.log(`forgotPasswordDto::::::: ${forgotPasswordDto}`);
try {
this.validateEmail(email.toLowerCase());
const userData = await this.userRepository.checkUserExist(email.toLowerCase());
Expand Down

0 comments on commit 975c9e2

Please sign in to comment.