开发者

Turn off devise confirmations but still send email

开发者 https://www.devze.com 2023-03-19 18:01 出处:网络
So what I want to do is basically turn email confirmations into a boolean field in the user database, like it\'s not required but it will still send out the confirmation mail every once and a while un

So what I want to do is basically turn email confirmations into a boolean field in the user database, like it's not required but it will still send out the confirmation mail every once and a while until the user confirms, and on the website开发者_JAVA技巧 you can use if user_confirmed? and such.


* +allow_unconfirmed_access_for+:

will allow the user to log in without being confirmed. If this can be "hotwired" open, or set to a very large number, that would satisfy the requirement.

Sending periodic reminder emails will require setting up a cron job and testing .user_confirmed?

0

精彩评论

暂无评论...
验证码 换一张
取 消