Setting to control when a confirmation url expires?

742 views
Skip to first unread message

David Christiansen

unread,
Dec 30, 2010, 8:29:43 AM12/30/10
to Devise
Hi everyone,
Is there a setting that controls when the token in a registraion
confirmation email expires? I'm having issues with some of these urls
not working and I want to make sure that's not the culprit.

Thanks!

Dave

Eric Harris-Braun

unread,
Dec 30, 2010, 11:24:02 AM12/30/10
to Devise
yes it's:

config.confirm_within = 2.days

you can set it in config/initializers/devise.rb

David Christiansen

unread,
Dec 30, 2010, 11:33:30 AM12/30/10
to plataforma...@googlegroups.com
Well, that just let's them use the app for 2 days without confirming,
which is cool, but not what I'm looking for. Are the confirmation
tokens good forever? Or, if I don't confirm for say, five days, will
that link still work?

--
David Christiansen
Founder and Owner, TroopTrack LLC

da...@trooptrack.com
www.trooptrack.com
Boy Scout Troop Management for the 21st Century
317-966-6154 (mobile)

Eric Harris-Braun

unread,
Dec 30, 2010, 11:45:14 AM12/30/10
to plataforma...@googlegroups.com
You're right, my bad.  I don't see a setting for that, and if you look Devise:Models:Confirmable#confirm! (https://github.com/plataformatec/devise/blob/master/lib/devise/models/confirmable.rb)
I don't see anything that checks for confirmation token validity.

-e
Reply all
Reply to author
Forward
0 new messages