Skip to content

feat(core): allow switching 2FA method from the challenge page - #64753

Closed
skjnldsv wants to merge 1 commit into
nextcloud:masterfrom
skjnldsv:feature/2fa-challenge-ux
Closed

skjnldsv wants to merge 1 commit into
nextcloud:masterfrom
skjnldsv:feature/2fa-challenge-ux

Conversation

@skjnldsv

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

Once a 2FA method is picked on the selection page, the challenge page only offers "Use backup code" and "Cancel login". If I pick Nextcloud Notification but have no logged-in device at hand, the only way to use TOTP instead is "Cancel login", which logs out and means typing the password again.

This adds a "Use another method" link to the challenge page that goes back to /login/selectchallenge, keeping redirect_url. The pending 2FA session is untouched since selectChallenge is a plain GET, so nothing changes on the session side.

The link only shows when there is another regular provider than the current one. With only TOTP + backup codes, the existing "Use backup code" link already covers it, so it stays hidden. On the backup codes page it shows as soon as a regular provider exists.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Show a "Use another method" link on the challenge page when another
regular provider is available, so users can go back to the selection
page instead of cancelling the login.

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

Copy link
Copy Markdown
Member Author

Created it from the wrong origin...

@skjnldsv skjnldsv closed this Sep 25, 2026
@skjnldsv
skjnldsv deleted the feature/2fa-challenge-ux branch September 25, 2026 07:51
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