FIX: Don't import parts of the email address as name

This commit is contained in:
Gerhard Schlager 2019-02-17 22:59:00 +01:00
parent f04471e422
commit 8d5dfe1e01
1 changed files with 0 additions and 2 deletions

View File

@ -302,8 +302,6 @@ class ImportScripts::Base
# Allow the || operations to work with empty strings ''
opts[:username] = nil if opts[:username].blank?
opts[:name] = User.suggest_name(opts[:email]) unless opts[:name]
if opts[:username].blank? ||
opts[:username].length < User.username_length.begin ||
opts[:username].length > User.username_length.end ||