Skip to content

Commit

Permalink
Redirection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Aug 8, 2024
1 parent 0690a38 commit 4f2ad8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def confirm_email
redirect_path = "https://buildingai.elementsofai.com/#{language && language != "en" ? "#{language}/" : ''}email-verified" if params[:origin] && params[:origin].start_with?('building_ai')
redirect_path = 'https://courses.mooc.fi/email-verified' if params[:origin] && params[:origin].start_with?('courses_moocfi')
User.find(params[:user_id]).update!(email_verified: true)
redirect_to redirect_path, notice: 'Your email address has been verified!'
redirect_to redirect_path, notice: 'Your email address has been verified!', allow_other_host: true
end

def send_verification_email
Expand Down

0 comments on commit 4f2ad8f

Please sign in to comment.