summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/keyderive.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/keyderive.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/keyderive.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/keyderive.js b/packages/meshbay-hub/src/meshbay_hub/static/keyderive.js
index edf4df9..bd5282c 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/keyderive.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/keyderive.js
@@ -401,9 +401,9 @@ async function registerUser(username, email, password, recoveryMnemonic, captcha
// appends it to the verification e-mail and stores it nowhere
// (docs/MESHBAY_DESIGN.md §3.6). Omitted when they chose to save it themselves.
if (recoveryMnemonic) payload.recovery_key = recoveryMnemonic;
- // reCAPTCHA response, when the hub has a captcha configured. The widget lives
- // in RegisterPage (auth-page.js); this function just forwards its token. A
- // hub with no captcha configured sends nothing and the server does not check.
+ // The proof-of-work answer, when the hub asks for one. RegisterPage
+ // (auth-page.js) works it out; this function just forwards it. A hub with
+ // the check turned off gets nothing and does not look.
if (captchaToken) payload.captcha_token = captchaToken;
const resp = await hubCall('/v1/users/register', {