سؤال

I am using devise for authentication & able to send confirmation email. I want to know is there any configuration available to expire confirmation link in email after certain duration?
Thanks in advance.

هل كانت مفيدة؟

المحلول

Have a look at http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Confirmable - the configuration option you're looking for is confirm_within. The confirmation token should be generated before the user record is created, that is if the model includes the :confirmable option.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top