I'm using the plan: Confirmation in my user model
My requirements are that after signing up / registering, the user must successfully (without confirmation) and the confirmation link should be sent to the user's email.
The second time if the user has not confirmed their account, then sign-in should not be there.
How to achieve this goal?
thanks
to get absolutely which If you are searching, you will need to override Devise as well as make some magic. If you choose to go down this path, there are many instances of overriding developer controllers on their page. By enabling However, I would like to provide an easy solution which can be acceptable to you if you look in the I think finally, enabling this feature and setting it for anything that is acceptable for your application, both developer and finally The better way will be the user's approach I can also ensure that the user is informed that they are X number of hours / day for confirmation of their account, before confirming their account via email : Trackable module, you will have access to
sign_in_count , which you can use to confirm and allow only one.
devise.rb file, starting from the line 122, you will see that You can allow indefinite access to your application for a period of time.
# ==> Configuration: Confirmation # period that the user is allowed to access the website even without confirmation of their account. For example, if 2. , The user # will be able to access the website for two days without confirmation of its account, # entry will be blocked only on the third day. The default is 0.days, meaning # users can not access the website without confirming their account. # Config.allow_unconfirmed_access_for = 2.days
Send_instructions to put something in line 34.
Comments
Post a Comment