feature(agent_connect_2fa): add intermediate pages to improve UX
This commit is contained in:
parent
6f5135a6b2
commit
cd2d772cd0
8 changed files with 120 additions and 5 deletions
14
app/views/agent_connect/agent/explanation_2fa.html.haml
Normal file
14
app/views/agent_connect/agent/explanation_2fa.html.haml
Normal file
|
@ -0,0 +1,14 @@
|
|||
.fr-container
|
||||
%h1.fr-h2.fr-mt-4w Une validation en 2 étapes est désormais nécessaire.
|
||||
|
||||
%p.fr-mb-2w
|
||||
La sécurité de votre compte augmente. Nous vous demandons à présent une validation en 2 étapes pour vous connecter.
|
||||
|
||||
%p.fr-mb-2w
|
||||
Vous allez devoir <b>configurer votre mode d'authentification</b> sur le site <b>MonComptePro</b> :
|
||||
|
||||
%img{ src: image_url("instructions_moncomptepro.png"), alt: "MonComptePro", loading: 'lazy' }
|
||||
|
||||
|
||||
%button.fr-btn.fr-btn--primary.fr-mb-2w
|
||||
= link_to "Configurer mon appli d'authentification sur MonComptePro", ENV['MON_COMPTE_PRO_2FA_NOT_CONFIGURED_URL']
|
|
@ -0,0 +1,12 @@
|
|||
.fr-container
|
||||
%h1.fr-h2.fr-mt-4w Poursuivez votre connexion à #{APPLICATION_NAME}
|
||||
|
||||
= render Dsfr::AlertComponent.new(state: :success, extra_class_names: 'fr-mb-4w') do |c|
|
||||
- c.with_body do
|
||||
%p Votre application d'authentification a bien été configurée.
|
||||
|
||||
%p.fr-mb-4w
|
||||
Vous allez maintenant pouvoir <b>vous connecter</b> à nouveau à #{APPLICATION_NAME} en effectuant la validation en 2 étapes avec votre <b>application d'authentification</b>.
|
||||
|
||||
%button.fr-btn.fr-btn--primary.fr-mb-2w
|
||||
= link_to "Se connecter à #{APPLICATION_NAME} avec #{AgentConnect}", agent_connect_login_path
|
Loading…
Add table
Add a link
Reference in a new issue