Make hCaptcha site key configurable

This commit is contained in:
2026-08-25 01:05:12 +00:00
parent 0f4a56ada7
commit 151cb7bf2e
5 changed files with 41 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
--- a/src/routes/auth/login.js
+++ b/src/routes/auth/login.js
@@ -247,7 +247,7 @@
  {tr("are_you_a_robot")}
</DialogTitle>
<DialogContent>
- <HCaptcha theme={themeMode} sitekey="1788882d-3695-4807-abac-7d7166ec6325" onVerify={handleCaptcha} />
+ <HCaptcha theme={themeMode} sitekey={import.meta.env.VITE_HCAPTCHA_SITEKEY} onVerify={handleCaptcha} />
</DialogContent>
</Dialog>
<Portal>