-
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
Confirmable - unconfirmed email #58
Comments
@UrbanViking - In case it helps, I've prevented the use of those columns by overriding the attributes as follows in my User.rb: # Force disable confirmation in devise_token_auth
def confirmed_at
DateTime.now
end
def confirmed_at=(val)
end
def unconfirmed_email
self.email
end
def unconfirmed_email=(val)
end |
Thanks @UrbanViking, I'll look into this. |
@booleanbetrayal - Thank you for the workaround. I hope that @lynndylanhurley will fix it. |
Closed
This should be fixed as of version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test A
before_create :skip_confirmation!
in User modelResult of test A
db:migration fails during execution of seed.rb with message:
NameError: undefined local variable or method `confirmed_at' for #User:0x007fabb13dcae8
Test B
4. Enabled the Confirmable columns in the migration file
5. Ran db:migration
Result of test B
Confirmation columns are all updated except unconfirmed_email
Test C
6. Removed `before_create :skip_confirmation!`` in User model
7. Kept the Confirmable columns enabled in the migration file
8. Ran db:migration
Result of test C
Confirmation columns are all updated except unconfirmed_email and confirmed_at
Question 1
Are the Confirmation columns necessary, if
before_create :skip_confirmation!
is implemented ?Question 2
Shouldn't unconfirmed_email be set when confirmation is implemented or could this column be omitted ? You already have uid and email columns.
The text was updated successfully, but these errors were encountered: