Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
dfeb60da
Commit
dfeb60da
authored
Nov 06, 2017
by
Joe Marty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change Sign Out route from a DELETE to a GET
Closes #39708
parent
21d8ec15
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+1
-1
changelogs/unreleased/feature-change-signout-route.yml
changelogs/unreleased/feature-change-signout-route.yml
+5
-0
config/initializers/devise.rb
config/initializers/devise.rb
+1
-1
No files found.
app/views/layouts/header/_default.html.haml
View file @
dfeb60da
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
=
link_to
"Help"
,
help_path
=
link_to
"Help"
,
help_path
%li
.divider
%li
.divider
%li
%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
]
-
if
session
[
:impersonator_id
]
%li
.impersonation
%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
=
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
...
...
changelogs/unreleased/feature-change-signout-route.yml
0 → 100644
View file @
dfeb60da
---
title
:
Change 'Sign Out' route from a DELETE to a GET
merge_request
:
39708
author
:
Joe Marty
type
:
changed
config/initializers/devise.rb
View file @
dfeb60da
...
@@ -195,7 +195,7 @@ Devise.setup do |config|
...
@@ -195,7 +195,7 @@ Devise.setup do |config|
config
.
navigational_formats
=
[
:"*/*"
,
"*/*"
,
:html
,
:zip
]
config
.
navigational_formats
=
[
:"*/*"
,
"*/*"
,
:html
,
:zip
]
# The default HTTP method used to sign out a resource. Default is :delete.
# The default HTTP method used to sign out a resource. Default is :delete.
config
.
sign_out_via
=
:
delete
config
.
sign_out_via
=
:
get
# ==> OmniAuth
# ==> OmniAuth
# To configure a new OmniAuth provider copy and edit omniauth.rb.sample
# To configure a new OmniAuth provider copy and edit omniauth.rb.sample
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment