Commit d0fd5202 authored by Patrick Bajao's avatar Patrick Bajao

Merge branch '241359-nomethoderror-error' into 'master'

Resolve undefined method `invite_email'

Closes #241359

See merge request gitlab-org/gitlab!42349
parents 7b02570e 4846b635
......@@ -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