Rename captcha environment variable

This commit is contained in:
codex
2026-06-11 21:07:17 +02:00
parent c5048560e5
commit 0ea5428240
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
;; Run from a shell:
;; emacs -Q --batch -l kkkmeet-server.el -f kkkmeet-server-run-batch
;; KKKMEET_CAPTCHA_PASSPHRASE=secret emacs -Q --batch -l kkkmeet-server.el -f kkkmeet-server-run-batch
;; CAPTCHA=secret emacs -Q --batch -l kkkmeet-server.el -f kkkmeet-server-run-batch
;;
;; Or from Emacs:
;; M-x kkkmeet-server-start
@@ -131,7 +131,7 @@
(defun kkkmeet-server--captcha-passphrase ()
"Return the configured join captcha passphrase."
(or (getenv "KKKMEET_CAPTCHA_PASSPHRASE") "kkkmeet"))
(or (getenv "CAPTCHA") "kkkmeet"))
(defun kkkmeet-server--captcha-accepted-p (value)
"Return non-nil when VALUE matches the configured captcha passphrase."
+1 -1
View File
@@ -164,7 +164,7 @@
<input
id="captcha-input"
autocomplete="off"
placeholder="Passphrase"
placeholder="Type captcha text here"
required
/>
</div>
+1 -1
View File
@@ -5,7 +5,7 @@ import { randomUUID } from "node:crypto";
const port = Number(process.env.PORT || 3000);
const host = process.env.HOST || "127.0.0.1";
const captchaPassphrase = process.env.KKKMEET_CAPTCHA_PASSPHRASE || "kkkmeet";
const captchaPassphrase = process.env.CAPTCHA || "kkkmeet";
const publicDir = join(process.cwd(), "public");
const rooms = new Map();
const watchStates = new Map();