Skip to content

feat: shared code input style and digits-only input - #1858

Open
skjnldsv wants to merge 3 commits into
masterfrom
feature/two-factor-code-input
Open

skjnldsv wants to merge 3 commits into
masterfrom
feature/two-factor-code-input

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Relates to nextcloud/server#64755

Before After
2026-09-25_10-52 2026-09-25_10-48_1

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

Add the .two-factor-code-input class from server's guest.css to the
challenge input, so it gets the larger, full-width style used by the
other 2FA challenge pages. Without that server change the class has
no effect.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Strip non-digit characters while typing or pasting, so a code pasted
as "123 456" becomes "123456". The input also gets
pattern="[0-9]{6,10}" as native validation when JavaScript is not
available.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant