Use an invalid domain for fake email addresses in importers

This commit is contained in:
Gerhard Schlager
2019-05-30 22:02:10 +02:00
parent d3ba338144
commit c70d0c6659
5 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@ class ImportScripts::Nabble < ImportScripts::Base
create_users(users, total: total_count, offset: offset) do |row|
{
id: row["user_id"],
email: row["email"] || (SecureRandom.hex << "@domain.com"),
email: row["email"] || fake_email,
created_at: Time.zone.at(@td.decode(row["joined"])),
name: row["name"],
post_create_action: proc do |user|