I am using ruby on rails for the back end.
Its a research based question. I tried searching but didn't get any solution.
Any kind of help is greatly appreciated.
Thanks in advance!!!
I am using ruby on rails for the back end.
Its a research based question. I tried searching but didn't get any solution.
Any kind of help is greatly appreciated.
Thanks in advance!!!
Firstly... the term you're looking for is probably "confirmation" not "verification" right? you are talking about the email that lets a user confirm their email address? (and the password reset one)?
in which case the best place to start looking is Devise's confirmable
documentation: https://github.com/plataformatec/devise/blob/master/lib/devise/models/confirmable.rb
which seems to have this:
* confirmation_sent_at - A timestamp when the confirmation_token was generated (not sent)
That looks like you could use that to determine if the confirmation_sent_at
was over x.days.ago
and if it was... decide what to do with it then.
You will likely find something similar for password-resets too.
Maybe this will help you Allowing Unconfirmed Access
# in Devise Initializer
config.allow_unconfirmed_access_for = 365.days