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
Auth header is not being set in sign up when using confirmable with allowed unconfirmed access #361
Comments
Well, I think that what I said before is not completely right. First of all the condition should be the opposite and also in that case confirmation email will not be sent. So, I think something like this should be the right way to go:
|
Thanks for reporting this, @virginia-rodriguez! I'm hitting this issue as well and am shutting off confirmable for the time being. Would you like to create a PR for this? Your code appears to be correct. |
Seems like this is solved? See #89 . Otherwise feel free to reopen. |
On sign up, although unconfirmed access is configured, auth headers are not updated. So automatic sign in after sign up does not occurs (this works fine if confirmable module is not used).
I think it's because the following line: https://github.com/lynndylanhurley/devise_token_auth/blob/master/app/controllers/devise_token_auth/registrations_controller.rb#L51
should be replaced by:
just like it was replaced in colavitam@269e023
Is this correct?
The text was updated successfully, but these errors were encountered: