Skip to content

Commit

Permalink
fix:otp compare logic fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
neoandmatrix committed Dec 23, 2024
1 parent a96841d commit 67c9d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/bullmq/processors/otp.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class OtpQueueProcessor extends WorkerHost {
const key = generateKey(email);
const hashedOtp = await hashString(otp);
const storedOtp = await this.redisService.get(key);
return hashedOtp === storedOtp;
return await compareHashedString(hashedOtp, storedOtp);
}
}

Expand Down

0 comments on commit 67c9d1b

Please sign in to comment.