mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 19:46:39 +08:00
FIX: Don't import parts of the email address as name
This commit is contained in:
parent
f04471e422
commit
8d5dfe1e01
@ -302,8 +302,6 @@ class ImportScripts::Base
|
|||||||
# Allow the || operations to work with empty strings ''
|
# Allow the || operations to work with empty strings ''
|
||||||
opts[:username] = nil if opts[:username].blank?
|
opts[:username] = nil if opts[:username].blank?
|
||||||
|
|
||||||
opts[:name] = User.suggest_name(opts[:email]) unless opts[:name]
|
|
||||||
|
|
||||||
if opts[:username].blank? ||
|
if opts[:username].blank? ||
|
||||||
opts[:username].length < User.username_length.begin ||
|
opts[:username].length < User.username_length.begin ||
|
||||||
opts[:username].length > User.username_length.end ||
|
opts[:username].length > User.username_length.end ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user