diff --git a/decidim-user_extension/app/commands/concerns/decidim/user_extension/update_commands_overrides.rb b/decidim-user_extension/app/commands/concerns/decidim/user_extension/update_commands_overrides.rb index d35f5d759..90ba76cdf 100644 --- a/decidim-user_extension/app/commands/concerns/decidim/user_extension/update_commands_overrides.rb +++ b/decidim-user_extension/app/commands/concerns/decidim/user_extension/update_commands_overrides.rb @@ -21,7 +21,9 @@ def call notify_followers broadcast(:ok, @user.unconfirmed_email.present?) else - @form.errors.add :avatar, @user.errors[:avatar] if @user.errors.has_key? :avatar + [:avatar, :password, :password_confirmation].each do |key| + @form.errors.add key, @user.errors[key] if @user.errors.has_key? key + end broadcast(:invalid) end end