chiark / gitweb /
Support registering a new account via this client.
authorSimon Tatham <anakin@pobox.com>
Fri, 19 Jan 2024 08:05:03 +0000 (08:05 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 20 Jan 2024 14:57:13 +0000 (14:57 +0000)
commit1709e5e08d2ef19770501517fb32222a0439823d
tree49791b458f0189a8bd4896ea6047b70f371098d4
parentc89810e6f36d5d2a725eb97bb2375af5d9e5252a
Support registering a new account via this client.

This is provided as a second workflow on the TUI login page. You get
to enter a username, email address and password, and register your
account. You still have to respond to an email sent by the
server (just as much as logging in, it needs to know that you're
really the owner of that email address); this can be done by clicking
the link in the message, or pasting it into the login workflow,
whichever you think is easiest.

Clicking the link has weird effects if you set a redirect_uri of
"urn:ietf:wg:oauth:2.0:oob": the Mastodon web server actually tries to
redirect your browser to that URI, which causes at least Firefox to
prompt for an application to open it in, which is thoroughly confusing
and looks more like an error message than the indication of success it
actually is. So instead I've made it redirect to a page on my web
site, which is still a bit odd, but less odd than that.
TODO.md
src/client.rs
src/login.rs
src/tui.rs