[openstreetmap/openstreetmap-website] Use a post link to logout (#2496)

Andy Allan notifications at github.com
Wed Jan 8 13:06:11 UTC 2020


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
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/2496

-- Commit Summary --

  * Use a post link to logout

-- File Changes --

    M app/controllers/users_controller.rb (2)
    M app/views/layouts/_header.html.erb (2)
    M app/views/users/logout.html.erb (1)
    M test/controllers/users_controller_test.rb (29)
    A test/system/user_logout_test.rb (22)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/2496.patch
https://github.com/openstreetmap/openstreetmap-website/pull/2496.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2496
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200108/52884759/attachment.htm>


More information about the rails-dev mailing list