demarches-normaliennes/app/views/administrations/sessions/new.html.haml
Christophe Robillard 2a0ebd062a enable 2FA for manager
when trying to access manager, if superadmin did'nt enable otp, he/she is redirected to a page to enable 2FA. When superadmin is enabling 2FA, he has to to scan a qrcode with the 2FA application client. And afterwards, the superadmin has to log in with email, password and OTP code.
2020-11-05 16:03:55 +01:00

18 lines
728 B
Text

.super-admin.flex.justify-center
%div
%h2.huge-title Espace Manager
.auth-form.sign-in-form
= form_for Administration.new, url: administration_session_path, html: { class: "form" } do |f|
%h1 Connectez-vous
= f.label :email, "Email (nom@site.com)"
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true
= f.label :password, "Mot de passe (#{PASSWORD_MIN_LENGTH} caractères minimum)"
= f.password_field :password, autocomplete: 'current-password'
= f.label :otp_attempt, 'Code OTP (uniquement si vous avez déjà activé 2FA)'
= f.text_field :otp_attempt
= f.submit "Se connecter", class: "button large primary expand"