stop random hostname for anon

This commit is contained in:
Sam 2015-05-11 17:48:54 +10:00
parent 2282869f30
commit f180aba492

View file

@ -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,