Skip to content

feat: show plaintext TOTP secret during 2FA setup#670

Open
ltianyi992 wants to merge 1 commit into
docusealco:masterfrom
ltianyi992:feature/show-totp-secret-text
Open

feat: show plaintext TOTP secret during 2FA setup#670
ltianyi992 wants to merge 1 commit into
docusealco:masterfrom
ltianyi992:feature/show-totp-secret-text

Conversation

@ltianyi992

Copy link
Copy Markdown

Closes #586

Summary

Displays the raw TOTP secret as selectable text alongside the QR code during 2FA setup.

Helps users who cannot scan QR codes (no camera, remote desktop, screen readers) or prefer to manually enter keys into password managers.

Changes

  • app/views/mfa_setup/_form.html.erb — adds <code> block with current_user.otp_secret below the QR code
  • config/locales/i18n.yml — adds or_enter_this_key_manually English translation key

Test plan

  • TOTP secret appears below QR code on 2FA setup page
  • Text is selectable/copyable
  • Manually entering the secret into an authenticator app works

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.

Feature Request: plaintext TOTP key in addition to QR Code

2 participants