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

Insecure Password Storage #319

Open
nvisium-john-poulin opened this issue Feb 21, 2018 · 1 comment
Open

Insecure Password Storage #319

nvisium-john-poulin opened this issue Feb 21, 2018 · 1 comment

Comments

@nvisium-john-poulin
Copy link
Contributor

If you follow the documentation, you will be left in a situation where loading the seed data / running spec tests will throw the following error:

rake aborted!
ActiveModel::UnknownAttributeError: unknown attribute 'password' for User.
/Users/jpoulin/.rvm/gems/ruby-2.4.3/gems/activemodel-5.1.5/lib/active_model/attribute_assignment.rb:48:in `_assign_attribute'

This is likely due to the fact that we remove the password column, and AR no longer sees the attribute password.

@nvisium-john-poulin
Copy link
Contributor Author

I was able to get this to work through adding attr_accessor :password to the User model.

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

No branches or pull requests

1 participant