Navigation Menu

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

Skip email confirmation #1170

Closed
danielecappuccio opened this issue May 16, 2018 · 2 comments
Closed

Skip email confirmation #1170

danielecappuccio opened this issue May 16, 2018 · 2 comments

Comments

@danielecappuccio
Copy link

This is a question, not an issue. Is there an easy way to skip email confirmation when new users sign up?

@dks17
Copy link
Contributor

dks17 commented May 17, 2018

Hi. I think there are two ways:

  1. Don't use confirmable module in your user model
devise :registerable #,:confirmable
  1. Or use skip_confirmation! on your user object:
user = User.new(email: my@mail.com)
user.skip_confirmation!
user.save

@danielecappuccio
Copy link
Author

The first solution worked fine! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants