app/controllers/registrations_controller.rb
# Overwrite update_resource to let OAuth users make an update without a password
Overwrite update_resource to let OAuth users make an update without a password
Overwrite update_resource to let OAuth users make an update without a password
def update_resource(resource, params)
    if current_user.provider == "facebook"
      params.except!(:password, :password_confirmation, :current_password) 
      resource.update_without_password(params)
    else
      resource.update_with_password(params)
    end
  end
def update_resource ( resource , params ) if current_user . provider == "facebook" params . except! ( :password , :password_confirmation , :current_password ) resource . update_without_password ( params ) else resource . update_with_password ( params ) end end
Overwrite update_resource to let OAuth users make an update without a password
Overwrite update_resource to let OAuth users make an update without a password
#params.delete("current_password") #removes keys if there
resource
params