From eab74e77f72489ea07b6debb3f0ccf0f592fd131 Mon Sep 17 00:00:00 2001 From: quentinchampenois <26109239+Quentinchampenois@users.noreply.github.com> Date: Fri, 3 May 2024 11:32:57 +0200 Subject: [PATCH] fix: User can update email in account form --- .../decidim/friendly_signup/registrations_redirect.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/concerns/decidim/friendly_signup/registrations_redirect.rb b/app/controllers/concerns/decidim/friendly_signup/registrations_redirect.rb index a942115..5bd3bef 100644 --- a/app/controllers/concerns/decidim/friendly_signup/registrations_redirect.rb +++ b/app/controllers/concerns/decidim/friendly_signup/registrations_redirect.rb @@ -10,6 +10,11 @@ module RegistrationsRedirect included do def show if Decidim::FriendlySignup.use_confirmation_codes.present? + if current_user&.confirmed? && current_user.confirmation_token == params[:confirmation_token] + super + return + end + respond_with_navigational(resource) { redirect_to decidim.new_user_confirmation_path } return end