Slug the username to handle spaces, etc.

This commit is contained in:
snipe 2016-08-02 11:12:28 -07:00
parent 682c75e990
commit a5467ba25d

View file

@ -660,7 +660,7 @@ class ObjectImportCommand extends Command
$last_name = $user_email_array['last_name'];
if ($user_email=='') {
$user_email = $user_email_array['username'].'@'.Setting::getSettings()->email_domain;
$user_email = str_slug($user_email_array['username']).'@'.Setting::getSettings()->email_domain;
}
if ($user_username=='') {