Commit c2cb2541ca01ff4db05a58d6cc1150236d638855

Thomas de Grivel 2023-11-28T00:22:11

show user login on TOTP page

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit_web/templates/user_session/totp.html.heex b/lib/kmxgit_web/templates/user_session/totp.html.heex
index a28df7c..a39f7d0 100644
--- a/lib/kmxgit_web/templates/user_session/totp.html.heex
+++ b/lib/kmxgit_web/templates/user_session/totp.html.heex
@@ -10,7 +10,7 @@
 
     <div class="mb-3">
       <%= label f, :totp, gettext("TOTP (Google Authenticator) for user %{user}",
-          %{user: @user.login}), class: "form-label" %>
+          %{user: @user.slug.slug}), class: "form-label" %>
       <%= number_input f, :totp, class: "form-control" %>
       <%= error_tag f, :totp %>
     </div>