Fix logging with with Javascript disabled
This commit is contained in:
parent
2a0c879d53
commit
1c3f692ec0
2 changed files with 3 additions and 1 deletions
|
|
@ -7,5 +7,5 @@
|
||||||
a href='#'
|
a href='#'
|
||||||
= fa_icon 'image 2x', text: 'My uploads'
|
= fa_icon 'image 2x', text: 'My uploads'
|
||||||
li
|
li
|
||||||
= link_to destroy_user_session_path, :method => :delete
|
= link_to destroy_user_session_path
|
||||||
= fa_icon 'lock 2x', text: 'Logout'
|
= fa_icon 'lock 2x', text: 'Logout'
|
||||||
|
|
|
||||||
|
|
@ -244,6 +244,8 @@ Devise.setup do |config|
|
||||||
|
|
||||||
# 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 = :delete
|
||||||
|
# Workaround: logging out would not work without Javascript otherwise
|
||||||
|
config.sign_out_via = :get
|
||||||
|
|
||||||
# ==> OmniAuth
|
# ==> OmniAuth
|
||||||
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue