aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-11-16 12:35:04 -0700
committerAdam Soltys <[email protected]>2026-11-16 12:35:04 -0700
commit032f5038e17afb80cd704b8363b8c3c8688e16b6 (patch)
tree19e101573c296351e347015f4c006d71025226f0 /src/routes/(static)
parenteada69879cee323c6da497fd6cf5899325827c8e (diff)
downloadcoinos-ui-032f5038e17afb80cd704b8363b8c3c8688e16b6.tar.gz
coinos-ui-032f5038e17afb80cd704b8363b8c3c8688e16b6.zip
Support page: on Tor, point people to [email protected] instead of a form that always fails
The onion site skipped reCAPTCHA and posted an empty token, which the server always rejects with "failed captcha", so every Tor support request ended in "problem submitting". On .onion the page now shows the support email instead of the form, and a failed send on the clearnet site says to email us. Locale run also filled in strings missing from earlier commits (API tokens, account reset). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/routes/(static)')
-rw-r--r--src/routes/(static)/support/+page.svelte22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/routes/(static)/support/+page.svelte b/src/routes/(static)/support/+page.svelte
index 4cf9706d..05667763 100644
--- a/src/routes/(static)/support/+page.svelte
+++ b/src/routes/(static)/support/+page.svelte
@@ -27,17 +27,6 @@
let submit = (e) => {
e.preventDefault();
- if (isTor) {
- post("/post/email", {
- username: user?.username || `${username} (unverified)`,
- email,
- message,
- token: "",
- })
- .then(() => (sent = true))
- .catch(() => fail("problem submitting"));
- return;
- }
grecaptcha.ready(() => {
grecaptcha.execute(recaptchaSiteKey, { action: "submit" }).then((token) =>
post("/post/email", {
@@ -47,7 +36,7 @@
token,
})
.then(() => (sent = true))
- .catch(() => fail("problem submitting")),
+ .catch(() => fail(`${$t("user.support.failed")} [email protected]`)),
);
});
};
@@ -85,6 +74,15 @@
>
</a>
</div>
+ {:else if isTor}
+ <h1 class="text-center text-3xl md:text-4xl font-semibold mb-8">
+ {$t("user.support.header")}
+ </h1>
+
+ <p class="text-secondary text-lg">
+ {$t("user.support.torEmail")}
+ <a class="underline" href="mailto:[email protected]">[email protected]</a>
+ </p>
{:else}
<h1 class="text-center text-3xl md:text-4xl font-semibold mb-8">
{$t("user.support.header")}