diff --git a/src/auth/src/routes/otp.ts b/src/auth/src/routes/otp.ts index e542fda..6f45662 100644 --- a/src/auth/src/routes/otp.ts +++ b/src/auth/src/routes/otp.ts @@ -35,7 +35,7 @@ const route: FastifyPluginAsync = async (fastify, opts): Promise => { // no ? fuck off then return makeResponse("failed", "otp.failed.invalid"); // is it too old ? - if (dJwt.createdAt + OTP_TOKEN_TIMEOUT_SEC * 1000 > Date.now()) + if (dJwt.createdAt + OTP_TOKEN_TIMEOUT_SEC * 1000 < Date.now()) // yes ? fuck off then, redo the password return makeResponse("failed", "otp.failed.timeout");