remove useless redirection for manager sign_in and out
The manager alias for signin causes layout problems
This commit is contained in:
parent
2a0ebd062a
commit
8d23f6ae99
3 changed files with 5 additions and 5 deletions
|
@ -18,7 +18,7 @@ module Manager
|
||||||
elsif administration_signed_in?
|
elsif administration_signed_in?
|
||||||
redirect_to edit_administration_otp_path
|
redirect_to edit_administration_otp_path
|
||||||
else
|
else
|
||||||
redirect_to manager_sign_in_path
|
redirect_to new_administration_session_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ as defined by the routes in the `admin/` namespace
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<nav class="navigation" role="navigation">
|
<nav class="navigation" role="navigation">
|
||||||
<%= link_to "Se déconnecter", manager_sign_out_path, method: :delete, class: "navigation__link" %>
|
<%= link_to "Se déconnecter", destroy_administration_session_path, method: :delete, class: "navigation__link" %>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ Rails.application.routes.draw do
|
||||||
# Manager
|
# Manager
|
||||||
#
|
#
|
||||||
|
|
||||||
get 'manager/sign_in' => 'administrations/sessions#new'
|
|
||||||
delete 'manager/sign_out' => 'administrations/sessions#destroy'
|
|
||||||
namespace :manager do
|
namespace :manager do
|
||||||
resources :procedures, only: [:index, :show] do
|
resources :procedures, only: [:index, :show] do
|
||||||
post 'whitelist', on: :member
|
post 'whitelist', on: :member
|
||||||
|
@ -77,7 +75,9 @@ Rails.application.routes.draw do
|
||||||
# Authentication
|
# Authentication
|
||||||
#
|
#
|
||||||
|
|
||||||
devise_for :administrations, skip: [:registrations]
|
devise_for :administrations,
|
||||||
|
skip: [:registrations],
|
||||||
|
controllers: { sessions: 'administrations/sessions' }
|
||||||
|
|
||||||
get 'administrations/edit_otp', to: 'administrations#edit_otp', as: 'edit_administration_otp'
|
get 'administrations/edit_otp', to: 'administrations#edit_otp', as: 'edit_administration_otp'
|
||||||
put 'administrations/enable_otp', to: 'administrations#enable_otp', as: 'enable_administration_otp'
|
put 'administrations/enable_otp', to: 'administrations#enable_otp', as: 'enable_administration_otp'
|
||||||
|
|
Loading…
Reference in a new issue