From 51250d569c2bf42dec512a6dd1149e498e90fd90 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Fri, 21 Jun 2024 21:02:13 +0330 Subject: [PATCH] disable signature checking for now --- src/auth/auth.controller.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts index 049a61a..42c2af3 100644 --- a/src/auth/auth.controller.ts +++ b/src/auth/auth.controller.ts @@ -68,12 +68,12 @@ export class AuthController { @Body() { message, signature, address, chainId }: LoginDTO, ) { let isNewUser = false; - const isAuthentic = await this.authService.verifyUser( - message, - signature, - address, - ); - if (!isAuthentic) throw new UnauthorizedException('Invalid signature'); + // const isAuthentic = await this.authService.verifyUser( + // message, + // signature, + // address, + // ); + // if (!isAuthentic) throw new UnauthorizedException('Invalid signature'); let user = await this.prismaService.user.findFirst({ where: { address }, });