super_admin: check password complexity client side

This commit is contained in:
Christophe Robillard 2020-11-17 16:20:27 +01:00 committed by simon lehericey
parent 90d7ee872e
commit 94b3ec942b
4 changed files with 32 additions and 4 deletions

View file

@ -84,6 +84,10 @@ Rails.application.routes.draw do
passwords: 'super_admins/passwords'
}
devise_scope :super_admin do
get '/super_admins/password/test_strength' => 'super_admins/passwords#test_strength'
end
get 'super_admins/edit_otp', to: 'super_admins#edit_otp', as: 'edit_super_admin_otp'
put 'super_admins/enable_otp', to: 'super_admins#enable_otp', as: 'enable_super_admin_otp'