This commit is contained in:
Sam 2015-05-11 18:05:18 +10:00
parent f180aba492
commit 3d6cfc6421

View file

@ -33,7 +33,7 @@ class AnonymousShadowCreator
User.transaction do
shadow = User.create!(
password: SecureRandom.hex,
email: "#{SecureRandom.hex}@anon.#{Discourse.current_hostname}.com",
email: "#{SecureRandom.hex}@anon.#{Discourse.current_hostname}",
name: "",
username: UserNameSuggester.suggest(I18n.t(:anonymous).downcase),
active: true,