mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-04 16:14:07 +00:00
Where people may sign in to a server of their own (the custom endpoint setting and the desktop app's standalone mode), the sign-in form asked for a "JMAP Server" first, refused a host without https:// with the browser's own bubble and talked about CORS. Now the email address comes first and the server is looked up from its domain (JMAP well-known, SRV, then the admin's default) through a new budgeted route. The "Mail server" field opens only when nothing is found, takes a bare host, and keeps the CORS hint behind "Having trouble?" (not in the app). Gmail, Outlook.com and iCloud addresses get a plain note that these offer no JMAP. The app's browser button stays the main one and asks for what it needs under the field it needs. Also on the page: the theme button is an icon named "Light or dark", the heading is the app's name only when the admin gave one (else "Sign in", without the subtitle repeating it), "I have a code from my authenticator app", "Add account", and no 11 px text. login-page-i18n.test.tsx now names the app for the subtitle test and waits for the heading, since the default name no longer shows a subtitle, and finds the theme button by its new name.