parent
21d8ec1537
commit
dfeb60daa6
3 changed files with 7 additions and 2 deletions
|
@ -61,7 +61,7 @@
|
|||
= link_to "Help", help_path
|
||||
%li.divider
|
||||
%li
|
||||
= link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link"
|
||||
= link_to "Sign out", destroy_user_session_path, class: "sign-out-link"
|
||||
- if session[:impersonator_id]
|
||||
%li.impersonation
|
||||
= link_to admin_impersonation_path, class: 'impersonation-btn', method: :delete, title: "Stop impersonation", aria: { label: 'Stop impersonation' }, data: { toggle: 'tooltip', placement: 'bottom', container: 'body' } do
|
||||
|
|
5
changelogs/unreleased/feature-change-signout-route.yml
Normal file
5
changelogs/unreleased/feature-change-signout-route.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Change 'Sign Out' route from a DELETE to a GET
|
||||
merge_request: 39708
|
||||
author: Joe Marty
|
||||
type: changed
|
|
@ -195,7 +195,7 @@ Devise.setup do |config|
|
|||
config.navigational_formats = [:"*/*", "*/*", :html, :zip]
|
||||
|
||||
# The default HTTP method used to sign out a resource. Default is :delete.
|
||||
config.sign_out_via = :delete
|
||||
config.sign_out_via = :get
|
||||
|
||||
# ==> OmniAuth
|
||||
# To configure a new OmniAuth provider copy and edit omniauth.rb.sample
|
||||
|
|
Loading…
Reference in a new issue