-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Disable confirmable #99
Comments
Hi, which version are you using? The instructions in the readme are for version |
Hello @lynndylanhurley , I'm using |
hello @lynndylanhurley thanks. I upgraded to the latest beta version because taking out modules works like written in README. I have this in my model: I will close this one as it works for the latest version, sorry about the hassle. |
So there's no way to exclude modules in v0.1.30 ? Also trying to exclude the confirmable module. I am getting the error message below when trying to sign in. undefined local variable or method `confirmed_at' for #User:0x007fbf40cd28a8 It may be because I did not include the confirmable columns in the initial migration...? |
Im getting the same error |
Nevermind, my issue was fixed putting the include DeviseTokenAuth::Concerns::User after my own devise modules definition on model. |
@lumir, thank you! This solved my problem as well. Seems like the include tries to find devise configuration and if it can't creates a default one. |
I have the same error with :
|
I'm not sure if this is duplicate of #58 or not. After successful login I get this message :
A confirmation email was sent to your account at [email protected]. You must follow the instructions in the email before your account can be activated
So like the README suggest in the section https://github.com/lynndylanhurley/devise_token_auth#excluding-modules I removed the module from my model, this is my model:
user.rb
I've got a default migration generated by
rails generate devise_token_auth:install
and there is no way I can get rid of the confirmation email message.I tried to remove this bit from migration too:
Confirmable
Which led me to receiving this message :
undefined local variable or method `confirmed_at'
Can't save user via
rails c
, nor create it with factorygirl in my test.The only thing that works now is the original migration + this, suggestion from #59 :
So is there a better way to get rid of these annoying confirmations + possibly the unnecessary email fields?
The text was updated successfully, but these errors were encountered: