diff --git a/models/user/email_address.go b/models/user/email_address.go index bd2a5a9638..ac8fa643c4 100644 --- a/models/user/email_address.go +++ b/models/user/email_address.go @@ -524,8 +524,8 @@ func IsEmailDomainAllowedInternal( if err != nil { return false } - federatedAllowlist := append(emailDomainAllowList, globber) - result = validation.IsEmailDomainListed(federatedAllowlist, email) + emailDomainAllowList = append(emailDomainAllowList, globber) + result = validation.IsEmailDomainListed(emailDomainAllowList, email) } else { result = validation.IsEmailDomainListed(emailDomainAllowList, email) }