mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Slug the username to handle spaces, etc.
This commit is contained in:
parent
682c75e990
commit
a5467ba25d
|
@ -660,7 +660,7 @@ class ObjectImportCommand extends Command
|
||||||
$last_name = $user_email_array['last_name'];
|
$last_name = $user_email_array['last_name'];
|
||||||
|
|
||||||
if ($user_email=='') {
|
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=='') {
|
if ($user_username=='') {
|
||||||
|
|
Loading…
Reference in a new issue