]> git.openstreetmap.org Git - rails.git/commit
Use a post link to logout
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 8 Jan 2020 13:01:17 +0000 (14:01 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 8 Jan 2020 13:03:05 +0000 (14:03 +0100)
commit8a774e75193fcb66eea9e76b60f10623e1e0e682
tree900a4e6b1242cd7ba3252929c8bf98670baa72ec
parent17ecde019d0efeef4c31b7d82f383338aa4fc5ee
Use a post link to logout

This avoids needing to access the session id, which is currently
only working with the memcache store.

The fallback page is preserved for anyone who wants to logout without
using javascript.

Refs #2488
app/controllers/users_controller.rb
app/views/layouts/_header.html.erb
app/views/users/logout.html.erb
test/controllers/users_controller_test.rb
test/system/user_logout_test.rb [new file with mode: 0644]