]> cat aescling's git repositories - mastodon.git/commit
Fix email confirmation link not updating email (#6187)
authorPatrick Figel <patrick@figel.email>
Thu, 4 Jan 2018 23:15:35 +0000 (00:15 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 4 Jan 2018 23:15:35 +0000 (00:15 +0100)
commit5ec25ff3e1c53a4feab1e9b9a3f1660cca538c23
tree0ce4c7b587c6fe35d4f1fb27cfdf394b8dc4bec9
parent49e296e1b03ffe2b17fb390b6ad298172b25040f
Fix email confirmation link not updating email (#6187)

A change introduced in #6125 prevents
`Devise::Models::Confirmable#confirm` from being called for existing
users, which in turn leads to `email` not being set to
`unconfirmed_email`, breaking email updates. This also adds a test
that would've caught this issue.
app/models/user.rb
spec/controllers/auth/confirmations_controller_spec.rb
spec/models/user_spec.rb