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 User.transaction do
shadow = User.create!( shadow = User.create!(
password: SecureRandom.hex, password: SecureRandom.hex,
email: "#{SecureRandom.hex}@anon.#{Discourse.current_hostname}.com", email: "#{SecureRandom.hex}@anon.#{Discourse.current_hostname}",
name: "", name: "",
username: UserNameSuggester.suggest(I18n.t(:anonymous).downcase), username: UserNameSuggester.suggest(I18n.t(:anonymous).downcase),
active: true, active: true,