📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fixed token lifetime validation
Blue Mouseff528915d73a
diff --git a/src/captcha/captcha.service.ts b/src/captcha/captcha.service.tsindex 7b97f1261..2a41afd20 100644--- a/src/captcha/captcha.service.ts+++ b/src/captcha/captcha.service.ts@@ -157,7 +157,7 @@ export class CaptchaService {throw new BadRequestException('Could not decrypt token')}- if (dayjs.utc().diff(dayjs.utc(parsed.timestamp), 'second') > CAPTCHA_TOKEN_LIFETIME) {+ if (dayjs().unix() - parsed.timestamp > CAPTCHA_TOKEN_LIFETIME) {throw new BadRequestException('Token expired')}