feat(api): accept recovery codes as second factor and let users regenerate them
Enabling TOTP returns ten codes that are shown once. Disabling TOTP and regenerating codes require the password plus a current code. Closes #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
dbea42e7a5
commit
7b063d2cd8
12 files changed
+510
-123
No files matched your search
@@ -11,7 +11,7 @@
|
||||
"auth.login.submit": "Continue",
|
||||
"auth.login.title": "Sign in",
|
||||
"auth.login.to_signup": "Sign up",
|
||||
"auth.login.totp_hint": "Enter the code from your authenticator app.",
|
||||
"auth.login.totp_hint": "Enter the code from your authenticator app or one of your recovery codes.",
|
||||
"auth.signup.submit": "Create",
|
||||
"auth.signup.title": "Create account",
|
||||
"auth.signup.to_login": "Back to sign in",
|
||||
@@ -61,6 +61,13 @@
|
||||
"error.unsupported_locale": "Unsupported language.",
|
||||
"lang.de": "Deutsch",
|
||||
"lang.en": "English",
|
||||
"security.recovery.left": {
|
||||
"one": "{{.Count}} recovery code left",
|
||||
"other": "{{.Count}} recovery codes left"
|
||||
},
|
||||
"security.recovery.regenerate": "Generate new recovery codes",
|
||||
"security.recovery.save_now": "Store these recovery codes somewhere safe. Each works once if you lose your authenticator. They will not be shown again.",
|
||||
"security.recovery.saved": "I have saved them",
|
||||
"security.sso.heading": "Single sign-on",
|
||||
"security.sso.link": "Link SSO sign-in",
|
||||
"security.sso.linked": "SSO sign-in linked.",
|
||||
@@ -69,7 +76,7 @@
|
||||
"security.totp.active": "active",
|
||||
"security.totp.app_code": "Code from the app",
|
||||
"security.totp.confirm": "Confirm",
|
||||
"security.totp.current_code": "Current code",
|
||||
"security.totp.current_code": "Current code or recovery code",
|
||||
"security.totp.disable": "Disable",
|
||||
"security.totp.heading": "Two-factor (TOTP)",
|
||||
"security.totp.inactive": "not set up",
|
||||
|
||||
Reference in new issue
Block a user