Skip to content

Commit

Permalink
fix: User can update email in account form
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed May 3, 2024
1 parent 5c16009 commit eab74e7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eab74e7

Please sign in to comment.