Skip to content

Commit

Permalink
fix: Ensure user has confirmation_token
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed May 3, 2024
1 parent eab74e7 commit 1c91e02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module RegistrationsRedirect
included do
def show
if Decidim::FriendlySignup.use_confirmation_codes.present?
if current_user&.confirmed? && current_user.confirmation_token == params[:confirmation_token]
if current_user&.confirmed? && current_user.confirmation_token.present? && current_user.confirmation_token == params[:confirmation_token]
super
return
end
Expand Down

0 comments on commit 1c91e02

Please sign in to comment.