From 84916a2f109c8a8859a30592d1c7277529e22e56 Mon Sep 17 00:00:00 2001
From: David Fischer
Date: Fri, 14 Mar 2025 12:04:44 -0700
Subject: [PATCH] Toggle to view 2FA recovery codes
This adds a toggle to view the codes.
Feel free to reject this if you don't think it's necessary.
---
.../theme/templates/mfa/recovery_codes/index.html | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/readthedocsext/theme/templates/mfa/recovery_codes/index.html b/readthedocsext/theme/templates/mfa/recovery_codes/index.html
index 0d97b855..538b6f1b 100644
--- a/readthedocsext/theme/templates/mfa/recovery_codes/index.html
+++ b/readthedocsext/theme/templates/mfa/recovery_codes/index.html
@@ -21,13 +21,12 @@
-
- {% for code in unused_codes %}
-
- {{ code }}
-
- {% endfor %}
-
+
+
+ {% trans "View recovery codes" %}
+ {% for code in unused_codes %}{{ code }}
{% endfor %}
+
+