Remove all devise route and controller for instructeur and administrateur
This commit is contained in:
parent
1fb26451d3
commit
5bda753735
4 changed files with 4 additions and 168 deletions
|
@ -77,13 +77,9 @@ Rails.application.routes.draw do
|
|||
omniauth_callbacks: 'administrations/omniauth_callbacks'
|
||||
}
|
||||
|
||||
devise_for :administrateurs, controllers: {
|
||||
passwords: 'administrateurs/passwords'
|
||||
}, skip: [:registrations]
|
||||
devise_for :administrateurs, skip: :all
|
||||
|
||||
devise_for :instructeurs, controllers: {
|
||||
passwords: 'instructeurs/passwords'
|
||||
}, skip: [:registrations]
|
||||
devise_for :instructeurs, skip: :all
|
||||
|
||||
devise_for :users, controllers: {
|
||||
sessions: 'users/sessions',
|
||||
|
@ -98,11 +94,6 @@ Rails.application.routes.draw do
|
|||
get 'lien-envoye/:email' => 'users/sessions#link_sent', constraints: { email: /.*/ }, as: 'link_sent'
|
||||
end
|
||||
|
||||
devise_scope :instructeur do
|
||||
get '/instructeurs/edit' => 'instructeurs/registrations#edit', :as => 'edit_instructeurs_registration'
|
||||
put '/instructeurs' => 'instructeurs/registrations#update', :as => 'instructeurs_registration'
|
||||
end
|
||||
|
||||
devise_scope :administrateur do
|
||||
get '/administrateurs/password/test_strength' => 'administrateurs/passwords#test_strength'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue