Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chatmail: Sign-up webpage #282

Open
4 tasks
s0ph0s-dog opened this issue Feb 6, 2025 · 0 comments
Open
4 tasks

Chatmail: Sign-up webpage #282

s0ph0s-dog opened this issue Feb 6, 2025 · 0 comments

Comments

@s0ph0s-dog
Copy link
Contributor

This is part of a series of issues tracking chatmail support in Mox.

Chatmail servers have a sign-up webpage that provides basic information about a server, such as who runs it, what rules they have established, and a button + QR code that provide a dcaccount:https://chatmail.example/new link for creating an account. The /new endpoint should accept POST requests and return a JSON object:

{
    "email": "random@chatmail.example",
    "password": "random",
}

The local part of the email address should be 9–12 cryptographically random numbers and letters. The password should be 16+ cryptographically random numbers, letters, and symbols. Delta Chat clients will ask this endpoint for a username and password to use—but note that the server-side account creation should happen on first log in, not when the HTTP request happens!

In keeping with the established (minimalist) design language, the index page should use styles sparingly.

  • Add new WebChatmail handler which produces the index page and /new endpoint
  • Add configuration options to the new handler which allow administrator-defined text to be inserted into the index page: a blurb describing the server's goals, a list of rules/policies, and contact information for the administrator
  • Generate a QR code with the dcaccount: link
  • Test to ensure that a WebStatic handler for the index page can override the WebChatmail index page, in the event that the server administrator wishes to provide their own information page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant