Hi. I am trying to setup reconfirmable, so a user needs to reconfirm when changing his email address. Its a very nice feature, but I cant get it to work properly.
in the initilizer devise.rb: config.reconfirmable = true (config.allow_unconfirmed_access_for = 0.days) (config.reset_password_within = 12.hours)
in the form the model field unconfirmed_email get set properly. I checked this through the console.
The first confirmation email, when a user registers on the page gets send out without problem.
I tried debugging the problem with adding this code to the initializers directory to overwrite the devise methode that it triggered as a after_update hook:
module Devise::Models::Confirmable def send_on_create_confirmation_instructions debugger end end
it seems like send_on_create_confirmation_instructions is never called, since I never get to the debugger.
Does anybody has experiences with this or was facing a similar problem?
> Hi. > I am trying to setup reconfirmable, so a user needs to reconfirm when > changing his email address. Its a very nice feature, but I cant get it to > work properly.
> in the initilizer devise.rb: > config.reconfirmable = true > (config.allow_unconfirmed_access_for = 0.days) > (config.reset_password_within = 12.hours)
> in the form the model field unconfirmed_email get set properly. I checked > this through the console.
> The first confirmation email, when a user registers on the page gets send > out without problem.
> I tried debugging the problem with adding this code to the initializers > directory to overwrite the devise methode that it triggered as a > after_update hook:
> module Devise::Models::Confirmable > def send_on_create_confirmation_instructions > debugger > end > end
> it seems like send_on_create_confirmation_instructions is never called, > since I never get to the debugger.
> Does anybody has experiences with this or was facing a similar problem?
I haven't used reconfirmable yet, so I can't say for sure. You'd have to do some debugging when changing the email to check what devise methods are being triggered and why the email itself is not, sorry.
On Sunday, July 8, 2012 at 5:28 PM, j.n. wrote:
> good point. Unfortuneately send_confirmation_instructions does not get triggered ether....
> any hints appreciated :o)
> Am Donnerstag, 5. Juli 2012 20:39:17 UTC+2 schrieb j.n.:
> > Hi. > > I am trying to setup reconfirmable, so a user needs to reconfirm when changing his email address. Its a very nice feature, but I cant get it to work properly.
> > in the form the model field unconfirmed_email get set properly. I checked this through the console.
> > The first confirmation email, when a user registers on the page gets send out without problem.
> > I tried debugging the problem with adding this code to the initializers directory to overwrite the devise methode that it triggered as a after_update hook:
> > module Devise::Models::Confirmable
> > def send_on_create_confirmation_instructions
> > debugger
> > end
> > end
> > it seems like send_on_create_confirmation_instructions is never called, since I never get to the debugger.
> > Does anybody has experiences with this or was facing a similar problem?