Skip to content

📈 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!

some improvements

Blue Moused297aca63d1b
diff --git a/src/captcha/captcha.service.ts b/src/captcha/captcha.service.ts
index f822af26a..deca5cb4d 100644
--- a/src/captcha/captcha.service.ts
+++ b/src/captcha/captcha.service.ts
@@ -43,7 +43,11 @@ export class CaptchaService {
}
async generateCaptcha(): Promise<GeneratedCaptcha> {
- const captcha = svgCaptcha.create()
+ const captcha = svgCaptcha.create({
+ size: 6,
+ ignoreChars: '0o1il',
+ noise: 2,
+ })
const hash = this.hashCaptcha(captcha.text)
console.log(captcha.text, hash)