Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
reconfirmable doesnt send out email.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
j.n.  
View profile   Translate to Translated (View Original)
 More options Jul 5 2012, 2:39 pm
From: "j.n." <hippopot...@gmail.com>
Date: Thu, 5 Jul 2012 11:39:17 -0700 (PDT)
Local: Thurs, Jul 5 2012 2:39 pm
Subject: reconfirmable doesnt send out email.

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.

My setup is with devise 2.1.2 is:

user model:
attr_accessible  :email, :password, :password_confirmation,
:unconfirmed_email, ...
devise :invitable, :database_authenticatable, :registerable, :recoverable,
:rememberable, :trackable, :validatable, :confirmable, :omniauthable

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?

Tankfull for any help,
Jan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Antonio da Silva  
View profile  
 More options Jul 8 2012, 12:45 pm
From: Carlos Antonio da Silva <carlosantoniodasi...@gmail.com>
Date: Sun, 8 Jul 2012 13:45:31 -0300
Local: Sun, Jul 8 2012 12:45 pm
Subject: Re: [devise] reconfirmable doesnt send out email.

This one should be triggered only when the user gets created, I think you'd like to check send_confirmation_instructions instead.

Also, you can just write the methods in your model instead of trying to monkey patch devise. These methods are all included in your User model.

    def send_confirmation_instructions
      debugger;
      super
    end

Something like that.

--
At.
Carlos Antonio


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
j.n.  
View profile  
 More options Jul 8 2012, 4:28 pm
From: "j.n." <hippopot...@gmail.com>
Date: Sun, 8 Jul 2012 13:28:33 -0700 (PDT)
Local: Sun, Jul 8 2012 4:28 pm
Subject: Re: reconfirmable doesnt send out email.

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.:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Antonio da Silva  
View profile  
 More options Jul 14 2012, 5:25 pm
From: Carlos Antonio da Silva <carlosantoniodasi...@gmail.com>
Date: Sat, 14 Jul 2012 18:25:52 -0300
Local: Sat, Jul 14 2012 5:25 pm
Subject: Re: [devise] Re: reconfirmable doesnt send out email.

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.

--
At.
Carlos Antonio


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »