summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-cli/src/meshbay_cli/client/hub.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-cli/src/meshbay_cli/client/hub.py')
-rw-r--r--packages/meshbay-cli/src/meshbay_cli/client/hub.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/meshbay-cli/src/meshbay_cli/client/hub.py b/packages/meshbay-cli/src/meshbay_cli/client/hub.py
index 5b301f8..5726816 100644
--- a/packages/meshbay-cli/src/meshbay_cli/client/hub.py
+++ b/packages/meshbay-cli/src/meshbay_cli/client/hub.py
@@ -132,10 +132,10 @@ class Hub:
raise
async def register(self, username: str, email: str, auth_key: str,
- recovery_key: str | None, captcha_token: str | None) -> dict:
+ captcha_token: str | None) -> dict:
+ # Never the recovery key: the hub does not see it and refuses a
+ # register that carries one (docs/MESHBAY_DESIGN.md §3.6).
body = {"username": username, "email": email, "auth_key": auth_key}
- if recovery_key:
- body["recovery_key"] = recovery_key
if captcha_token:
body["captcha_token"] = captcha_token
return await self._call("POST", "/v1/users/register", json=body)