From f180aba492f7263857a3efdf71c247bc721cf8d7 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 11 May 2015 17:48:54 +1000 Subject: [PATCH] stop random hostname for anon --- app/services/anonymous_shadow_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/anonymous_shadow_creator.rb b/app/services/anonymous_shadow_creator.rb index 3441455d8..2b9729dd6 100644 --- a/app/services/anonymous_shadow_creator.rb +++ b/app/services/anonymous_shadow_creator.rb @@ -33,7 +33,7 @@ class AnonymousShadowCreator User.transaction do shadow = User.create!( password: SecureRandom.hex, - email: "#{SecureRandom.hex}@#{SecureRandom.hex}.com", + email: "#{SecureRandom.hex}@anon.#{Discourse.current_hostname}.com", name: "", username: UserNameSuggester.suggest(I18n.t(:anonymous).downcase), active: true,