]> git.openstreetmap.org Git - rails.git/commit
Avoid storing user records in the session during signup
authorTom Hughes <tom@compton.nu>
Sat, 28 Oct 2023 11:00:57 +0000 (12:00 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 29 Oct 2023 10:13:28 +0000 (10:13 +0000)
commit898a3882c58ed4a1a7e01682052b2078cae7ffd8
tree2ff20b74f20cd3b3fd90878378ba59c43d8ab691
parent6f60111c92d54d3076b54b3aa94e3ce06695c4be
Avoid storing user records in the session during signup

This works around an issue with rails failing to preserve attribute
change flags and is in line with upstream advice against storing models
in the session in this way.

https://github.com/rails/rails/issues/49826
https://github.com/rails/rails/issues/49827
.rubocop_todo.yml
app/controllers/users_controller.rb