You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
759 B

class Users::RegistrationsController < Devise::RegistrationsController
protected
def update_resource(resource, params)
# Wenn kein Passwort gesetzt werden soll:
if params[:password].blank? && params[:password_confirmation].blank?
resource.update_without_password(params.except(:current_password))
else
super
end
end
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:account_update, keys: [
:praepedeutikum_done,
required_hours_matrix: {},
weekly_target_matrix: {}
])
end
end