fix refacto super_admin
This commit is contained in:
parent
5fbc975f6a
commit
0e43b5e5c0
7 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
class Administrations::PasswordsController < Devise::PasswordsController
|
||||
class SuperAdmins::PasswordsController < Devise::PasswordsController
|
||||
def update
|
||||
super
|
||||
self.resource.disable_otp!
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
class Administrations::SessionsController < Devise::SessionsController
|
||||
class SuperAdmins::SessionsController < Devise::SessionsController
|
||||
end
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
%h2.huge-title Espace Manager
|
||||
%p Munissez-vous de votre téléphone sur lequel vous avez installé une application cliente 2FA (Google Authenticator, Authy, AndOTP, ...)
|
||||
%br
|
||||
%p= link_to "Activer l'authentification double-facteur", enable_administration_otp_path, method: :put, class: 'button primary'
|
||||
%p= link_to "Activer l'authentification double-facteur", enable_super_admin_otp_path, method: :put, class: 'button primary'
|
|
@ -3,7 +3,7 @@
|
|||
%h2.huge-title Espace Manager
|
||||
.auth-form.sign-in-form
|
||||
|
||||
= form_for Administration.new, url: administration_session_path, html: { class: "form" } do |f|
|
||||
= form_for SuperAdmin.new, url: super_admin_session_path, html: { class: "form" } do |f|
|
||||
%h1 Connectez-vous
|
||||
|
||||
= f.label :email, "Email (nom@site.com)"
|
||||
|
@ -17,5 +17,5 @@
|
|||
|
||||
.auth-options
|
||||
.text-right
|
||||
= link_to "Mot de passe oublié ou réinitialisation 2FA ?", new_administration_password_path, class: "link"
|
||||
= link_to "Mot de passe oublié ou réinitialisation 2FA ?", new_super_admin_password_path, class: "link"
|
||||
= f.submit "Se connecter", class: "button large primary expand"
|
Loading…
Reference in a new issue