开发者

Turn off devise confirmations but still send email

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜