app/controllers/users/registrations_controller.rb
# Overwrite update_resource to let users to update their user without giving their password

Overwrite update_resource to let users to update their user without giving their password
Overwrite update_resource to let users to update their user without giving their password
def update_resource(user, params)
    if user.identities.count > 0
      params.delete("current_password")
      user.update_without_password(params)
    else
      user.update_with_password(params)
    end
  end
def update_resource ( user , params ) if user . identities . count > 0 params . delete ( "current_password" ) user . update_without_password ( params ) else user . update_with_password ( params ) end end
Overwrite update_resource to let users to update their user without giving their password
Overwrite update_resource to let users to update their user without giving their password
user
<not_specific>
params
<not_specific>