Skip to content

feat(auth): log in to password accounts with an email address - #7

Merged
coko7 merged 2 commits into
mainfrom
feat/email-login
Nov 29, 2026
Merged

coko7 merged 2 commits into
mainfrom
feat/email-login

Conversation

@coko7

@coko7 coko7 commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

What

Email login (first commit):

  • Password accounts sign up and log in with an email instead of a login name. The display name stays the changeable public name.
  • The email is:
    • checked only for being well-formed (one @, a dotted domain, no spaces, at most 254 characters). There's no verification email yet;
    • trimmed, stored lowercase and unique ignoring case;
    • shown only on the owner's profile. A test checks the leaderboard never contains it.
  • The about page (en and fr) now says the email is only used to log in and is never shown or shared.
  • The email input gets the same styling as the other inputs.
  • No schema change: the email goes where the login name was stored.

Version stays 2.0.0 until launch (second commit):

  • Cargo.toml goes back to 2.0.0, and the 2.1.0 (renaming) and 2.2.0 (archive) notes are folded into the 2.0.0 release. "Sign up with a login name" now says "email".
  • The pre-launch tags v2.1.0 and v2.2.0 are already deleted. v2.0.0 stays, so the CI tag job skips every pre-launch merge.
  • At launch: git tag -f v2.0.0 <commit> && git push -f origin v2.0.0. This is in the README and in the changelog.toml header.

Check

  • New unit test for the email format. The auth, rename and archive tests now sign up and log in with emails, including different case and surrounding spaces.
  • fmt, clippy, 27 tests pass.

Not included

  • No verification email and no password reset by email: reset still goes through aot user reset-password.
  • Signup says when an email is already registered, which tells anyone whether an address has an account. That can't be avoided without a verification email.

Co-Authored-By: lazytrek 352825308+lazytrek@users.noreply.github.com

coko7 and others added 2 commits November 29, 2026 16:50
The email replaces the login name: checked well-formed (no verification
email yet), stored lowercase, unique ignoring case, shown only on the
owner's profile. The about page says it is only used to log in. No schema
change: the email goes where the login name was.

Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
Nothing is deployed yet, so pre-launch changes add notes to the 2.0.0
release instead of bumping. The 2.1.0 and 2.2.0 notes are folded into
2.0.0 (and "login name" becomes "email"). At launch the v2.0.0 tag is
moved to the deployed commit.

Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
@coko7
coko7 merged commit 8082379 into main Nov 29, 2026
2 checks passed
@coko7
coko7 deleted the feat/email-login branch November 29, 2026 16:05
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

Successfully merging this pull request may close these issues.

1 participant