mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: bulk importers wiping all email addresses without warning or errors
This commit is contained in:
parent
34a0e79bec
commit
200c6673f1
|
@ -341,9 +341,6 @@ class BulkImport::Base
|
|||
user_email[:email] ||= random_email
|
||||
user_email[:email].downcase!
|
||||
|
||||
# unique email
|
||||
user_email[:email] = random_email until user_email[:email] =~ EmailValidator.email_regex && @emails.add?(user_email[:email])
|
||||
|
||||
user_email
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user