Skip to content

Commit

Permalink
Revert signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahdigh committed Jun 21, 2024
1 parent 37cd4ec commit ecfb241
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
});
Expand Down

0 comments on commit ecfb241

Please sign in to comment.