Skip to content

Auth: show/hide password toggle, any-character passwords - #25

Merged
Wjouter merged 1 commit into
mainfrom
auth-password-polish
Nov 12, 2026
Merged

Wjouter merged 1 commit into
mainfrom
auth-password-polish

Conversation

@Wjouter

@Wjouter Wjouter commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Covers two roadmap items, without a spec (both are small).

Show/hide password toggle

  • Field.svelte adds an eye button to any type="password" field, so it shows up on sign-in, sign-up, the password confirm screen, invite, reset, security settings and the re-enter-password prompt.
  • A real toggle button (aria-pressed, aria-controls) labelled "Show password" / "Wachtwoord tonen".
  • The input gets 48px right padding so text doesn't run under the icon.

Unsupported password characters

No code needed: Passwords.cs only checks the length (12–128), so every character is accepted. The new SignInTests.AnyCharacterInAPassword sets a password with accents, emoji, Greek and Chinese characters and quotes, then signs in with it.

Testing

  • Sign-in tests pass (16/16), and the frontend unit tests pass (174/174).
  • Checked by hand on the sign-up page: the toggle reveals the password and switches the icon.

Not covered: passwords aren't Unicode-normalised, so a rare device-specific form of an accented letter could fail to match.

Closes #27
Closes #28

🤖 Generated with Claude Code

Every password input goes through Field, so the eye toggle lands on all
of them at once. Also adds a test proving passwords take any character
(only the length is checked), which settles the "unsupported characters"
roadmap item without further code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Wjouter
Wjouter merged commit 49c5c19 into main Nov 12, 2026
6 checks passed
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.

Auth: clear error for unsupported password characters Auth: show/hide password toggle (eye icon)

1 participant