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

How to skip confirmation on register but possibility to ask later #303

Closed
m2omou opened this issue Jul 14, 2015 · 3 comments
Closed

How to skip confirmation on register but possibility to ask later #303

m2omou opened this issue Jul 14, 2015 · 3 comments

Comments

@m2omou
Copy link

m2omou commented Jul 14, 2015

Some apps, automatically log the user after registration, but can ask to confirm the email to use a certain feature. Is it possible to do the same thing ?

Thanks !

@truthSeekr
Copy link

This is my fast solution. I overrided registrations_controller, I just removed this condition:
https://github.com/lynndylanhurley/devise_token_auth/blob/master/app/controllers/devise_token_auth/registrations_controller.rb#L51

It logs you in and still sends email
And then for sign_in I override method in my user.rb model:

    def confirmed?
      true
    end

but we could add here an another condition, maybe based on time(few days for conifmation). What if email was wrong ? We should have possibility to change email also....
I have just started working with this gem, so I can be wrong, point me out !

@zachfeldman
Copy link
Contributor

Seems like we have a solution for this one, so closing for now.

@mhluska
Copy link

mhluska commented Mar 1, 2019

Is this still relevant in 2019? The link posted above points to a line on the master branch so not sure what condition to remove.

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

4 participants