How can I sometimes require password and sometimes not with has_secure_password?

Viewed 1969

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?

2 Answers
Related