I’m using Devise for authentication in my application. I don’t want to require email confirmation when a user signs up, but I do want to require it if the user wants the app to send them email updates. Is this possible with the built-in :confirmable feature of Devise? I found the setting to set how long a user can log in without confirming, but I essentially want to set that to “forever”.
I’m using Devise for authentication in my application. I don’t want to require email
Share
Check out https://github.com/plataformatec/devise/blob/master/lib/devise/models/confirmable.rb. You can probably override
confirmation_period_valid?by returning alwaystrue.Alternatively, maybe you can change your setting to something like
10000.years.from_now, which might be a good enough estimation for “forever”, perhaps?