Skip to content

Commit

Permalink
Merge pull request #994 from numerique-gouv/rdum/add-missing-details-…
Browse files Browse the repository at this point in the history
…2fa-card

chore(2fa): add missing informations 2fa cards
  • Loading branch information
rdubigny authored Feb 20, 2025
2 parents f8c28a7 + 9812787 commit 10dba6b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/views/connection-and-account.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="fr-card__content">
<h3 class="fr-card__title blue-france">FreeOTP Authenticator</h3>
<div class="fr-card__desc">
<p class="fr-mb-2w">Ajout : <%= totpKeyVerifiedAt; %>
<p class="fr-mb-2w">Création : <%= totpKeyVerifiedAt; %>
</p>
<form action="/delete-authenticator-app-configuration" method="post">
<input
Expand Down Expand Up @@ -79,9 +79,19 @@
<div class="fr-card fr-card--horizontal fr-mb-3w">
<div class="fr-card__body">
<div class="fr-card__content">
<% if (shows_second_factor_only_label) { %>
<div class="fr-tile__start">
<p class="fr-badge fr-badge--info fr-badge--sm">Second facteur uniquement
</p>
</div>
<% } %>
<h3 class="fr-card__title blue-france"><%= display_name; %></h3>
<div class="fr-card__desc">
<p class="fr-mb-2w">Ajout : <%= created_at; %>
<p class="fr-mb-1w">Création : <%= created_at; %>
</p>
<p class="fr-mb-1w">Dernière utilisation : <%= last_used_at; %>
</p>
<p class="fr-mb-2w">Nombre d'utilisations : <%= usage_count; %>
</p>
<form action="/delete-passkeys/<%= credential_id; %>" method="post">
Expand All @@ -92,7 +102,7 @@
>
<button
aria-label="Supprimer la clé d'accès <%= display_name; %>"
class="fr-btn fr-btn--secondary fr-btn--sm js-confirm"
class="fr-btn fr-btn--tertiary fr-btn--icon-left fr-icon-delete-bin-line"
data-confirm="Cette action est irreversible."
type="submit"
>
Expand Down

0 comments on commit 10dba6b

Please sign in to comment.