Skip to content
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

Add ignore_period option to .confirm #5677

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

porras
Copy link

@porras porras commented Mar 12, 2024

Hi and thank you for all your work, I've been using Devise in all my projects since forever, but this is my first contribution.

In most if not all projects, I end up needing this for an admin panel or backoffice, where an admin can mark an email as confirmed manually. Calling .confirm will not work if the period is expired. I know it is possible to resend the confirmation link and so reset the period, but for some reason or other, this is a flow support teams end up needing. It's very easy to implement of course, but I think it'd be nice to have it in the library, instead of going to the database behind the library's back.

When set to true, the user will be confirmed without checking
Devise.confirm_within.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant