From 3a23f65979bff6a0166cf8e268ef00ea2d5ed1b6 Mon Sep 17 00:00:00 2001 From: takahashim Date: Tue, 27 Feb 2024 01:57:45 +0900 Subject: [PATCH] Update Decidim::UserExtension::UpdateCommandsOverrides --- .../decidim/user_extension/update_commands_overrides.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 d35f5d7598..90ba76cdf1 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