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!

generate secret key for new CAPTCHA projects

Blue Mousef07e8fc9d724
diff --git a/src/project/project.controller.ts b/src/project/project.controller.ts
index 2b036e2e0..be7b5729f 100644
--- a/src/project/project.controller.ts
+++ b/src/project/project.controller.ts
@@ -372,6 +372,7 @@ export class ProjectController {
project.isCaptchaProject = true
project.isAnalyticsProject = false
project.isCaptchaEnabled = true
+ project.captchaSecretKey = generateRandomString(CAPTCHA_SECRET_KEY_LENGTH)
}
const newProject = await this.projectService.create(project)