I've found someone else asking this on the devise list but it didn't end with a
suitable solution. I have posted there on that thread and asked for more help but the
list is incredibly quiet and I haven't found any help yet. Hoping someone here can
Devise allows me to require that users confirm their email addresses when they sign
up but also allows them to change the address without confirmation.
I wanted to implement confirmation whenever the address is changed but after thinking
about it I'm pretty stumped.
I could just set the account to require confirmation again, but what if the user
accidentally entered an invalid/incorrect email address and doesn't remember exactly
what they typed? They will be unable to login with their email address.
So, I need to store the new address somewhere safe, send a confirmation again and when
confirmed, copy the new address to the right field.
I can work this solution out except for the first part. Getting the profile saving
action to save the email address somewhere other than the email field would require me
to hack the device gem around right?
I've been working with rails for a while but never got too deep and dirty with it (or
gems). To me, it seems that if I go in and fiddle with the controller inside devise,
then I'll end up with my own fork essentially and have to maintain that as well as my
Does anyone have any insights or tips concerning this?