Skip to content

Commit 67c9d1b

Browse files
committed
fix:otp compare logic fixed
1 parent a96841d commit 67c9d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/bullmq/processors/otp.processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class OtpQueueProcessor extends WorkerHost {
5151
const key = generateKey(email);
5252
const hashedOtp = await hashString(otp);
5353
const storedOtp = await this.redisService.get(key);
54-
return hashedOtp === storedOtp;
54+
return await compareHashedString(hashedOtp, storedOtp);
5555
}
5656
}
5757

0 commit comments

Comments
 (0)