-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting allow_unconfirmed_access_for to nil #2275
Comments
@Ajedi32 hmmm, I don't follow. If you want to allow unconfirmed access for users all the time why do you need to use |
@nashby Because I still want to enable or disable access to certain features of the website based on whether the user has a confirmed email address or not. |
Wow, that was fast. Thanks. 👍 |
Nice! =D |
Please mention the use of I read docs, then googled, then found a StackOverflow answer mentioning the use of value nil. |
I'm with @r-a-o. I've just spend a lot more time than i want to admit to figure out my problem was solved by |
As you're probably aware, Devise's
:confirmable
module has a setting calledallow_unconfirmed_access_for
that determines how long a user can access their account for before they are forced to confirm its email address. Currently, there's no way to remove this restriction entirely like there is forconfirm_within
. I can work around this by settingallow_unconfirmed_access_for
to some ridiculous value like 1000.years, but that feels like a rather dirty solution. I'd prefer to just set it to nil and have that remove the restriction, but currently doing that yields the following error:The text was updated successfully, but these errors were encountered: