My app lets people register using a password OR with Facebook.
Even when I remove the password validations from my User model, I get :password_digest => ["can't be blank"] on the user model.
I use has_secure_password.
How can I make password_digest NOT required?
You can’t.
has_secure_passwordautomatically adds two validators to your model:Instead, supply a dummy value for
password_digestfor users that don’t have a password:This is secure, as no password can possibly be hashed to match that digest.