mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: email_domains_whitelist prevented creation of anonymous users
This commit is contained in:
@@ -36,6 +36,7 @@ class AnonymousShadowCreator
|
||||
shadow = User.create!(
|
||||
password: SecureRandom.hex,
|
||||
email: "#{SecureRandom.hex}@anon.#{Discourse.current_hostname}",
|
||||
skip_email_validation: true,
|
||||
name: username, # prevents error when names are required
|
||||
username: username,
|
||||
active: true,
|
||||
|
||||
Reference in New Issue
Block a user