From dc5106f564ef109de38fe621943162cc7dd79966 Mon Sep 17 00:00:00 2001 From: Adrian Gruntkowski Date: Tue, 21 Nov 2023 11:57:55 +0100 Subject: [PATCH] Implement view for rendering generated 2FA recovery codes --- .../generate_2fa_recovery_codes.html.heex | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lib/plausible_web/templates/auth/generate_2fa_recovery_codes.html.heex diff --git a/lib/plausible_web/templates/auth/generate_2fa_recovery_codes.html.heex b/lib/plausible_web/templates/auth/generate_2fa_recovery_codes.html.heex new file mode 100644 index 000000000..65ae2b7ea --- /dev/null +++ b/lib/plausible_web/templates/auth/generate_2fa_recovery_codes.html.heex @@ -0,0 +1,50 @@ +
+
+

+ <%= if @from_setup do %> + Setup Two-Factor Authentication + <% else %> + Your New Recovery Codes + <% end %> +

+ +
+ Use these recovery codes to log in if you lose access to the authenticator application. Store them somewhere safe! +
+ <%= for code <- @recovery_codes do %> +
<%= code %>
+ <% end %> +
+
+ +
+ + + +
+
+