mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
stop random hostname for anon
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user