Commit 4846b635 authored by Doug Stull's avatar Doug Stull

Use correct invite redirect params

parent 684630e8
......@@ -76,8 +76,10 @@ class InvitesController < ApplicationController
notice << "or create an account" if Gitlab::CurrentSettings.allow_signup?
notice = notice.join(' ') + "."
# this is temporary finder instead of using member method due to render_404 possibility
# will be resolved via https://gitlab.com/gitlab-org/gitlab/-/issues/245325
initial_member = Member.find_by_invite_token(params[:id])
redirect_params = initial_member ? { invite_email: member.invite_email } : {}
redirect_params = initial_member ? { invite_email: initial_member.invite_email } : {}
store_location_for :user, request.fullpath
......
---
title: 'Do not raise error when a member is not found by invite token'
merge_request: 42349
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment