1
0
Fork 0
forked from OpenNeo/impress
impress/app/helpers
Matchu 45090b8d1c Login/logout returns you to the same page
In the login case, we save the `return_to` parameter in the session, because login can be a multi-step process.

In the logout case, we just read it directly from the form params.

Note that you *could* end up in a weird scenario where an old return_to value sticks around for a bit? But we have the sense to delete it when we use it on a successful sign-in, and most links to the login page come with a `return_to` param which should reset it. So, you'd have to 1) have started but not finished a sign-in, 2) during the same session, and 3) get to the login page by an unusual means.

Probably fine!
2023-10-23 19:05:08 -07:00
..
application_helper.rb
campaigns_helper.rb
closet_hangers_helper.rb
closet_lists_helper.rb
closet_pages_helper.rb
contribution_helper.rb oh dang, did we just fix most of the mixed content? 2015-08-05 20:11:08 -04:00
donations_helper.rb
item_zone_sets_helper.rb
items_helper.rb
neopets_page_import_tasks_helper.rb
outfits_helper.rb Upgrade to Rails 7.0.6 2023-10-23 19:05:07 -07:00
static_helper.rb