]> git.openstreetmap.org Git - rails.git/commit
Delete any outstanding tokens when a user changes their email
authorTom Hughes <tom@compton.nu>
Tue, 29 Sep 2020 12:47:40 +0000 (13:47 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 29 Sep 2020 12:47:40 +0000 (13:47 +0100)
commitc694c78c9a9fbc46f71519546cddc15f70835d20
tree02c60c2ba9098d66f228dd17077dfbfd585622b6
parentf0bf85d4a15d8174e302e857c320ca874b9e1763
Delete any outstanding tokens when a user changes their email

This ensures that any tokens previously sent to the old email address
can no longer be used if somebody were able to access that address.
app/controllers/users_controller.rb
app/models/user.rb