Remove demo route

This commit is contained in:
simon lehericey 2019-08-08 10:21:13 +02:00 committed by Pierre de La Morinerie
parent a4b9eecded
commit 1fb26451d3

View file

@ -93,20 +93,17 @@ Rails.application.routes.draw do
}
devise_scope :user do
get '/users/sign_in/demo' => redirect("/users/sign_in")
get '/users/no_procedure' => 'users/sessions#no_procedure'
get 'connexion-par-jeton/:id' => 'users/sessions#sign_in_by_link', as: 'sign_in_by_link'
get 'lien-envoye/:email' => 'users/sessions#link_sent', constraints: { email: /.*/ }, as: 'link_sent'
end
devise_scope :instructeur do
get '/instructeurs/sign_in/demo' => redirect("/users/sign_in")
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/sign_in/demo' => redirect("/users/sign_in")
get '/administrateurs/password/test_strength' => 'administrateurs/passwords#test_strength'
end