mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Fixes #2352
This commit is contained in:
parent
8f4e016c01
commit
2350c1c15c
|
@ -814,7 +814,7 @@ class UsersController extends Controller
|
||||||
'phone' => trim(e($row[5])),
|
'phone' => trim(e($row[5])),
|
||||||
'jobtitle' => trim(e($row[6])),
|
'jobtitle' => trim(e($row[6])),
|
||||||
'employee_num' => trim(e($row[7])),
|
'employee_num' => trim(e($row[7])),
|
||||||
//'company_id' => Company::getIdForUser($row[8]),
|
'company_id' => Company::getIdForUser($row[8]),
|
||||||
'permissions' => '{"user":1}',
|
'permissions' => '{"user":1}',
|
||||||
'notes' => 'Imported user'
|
'notes' => 'Imported user'
|
||||||
);
|
);
|
||||||
|
|
|
@ -32,9 +32,9 @@ Create a User
|
||||||
<p>
|
<p>
|
||||||
Upload a CSV file with one or more users. Passwords will be auto-generated. The CSV should have the <strong>first</strong> fields as: </p>
|
Upload a CSV file with one or more users. Passwords will be auto-generated. The CSV should have the <strong>first</strong> fields as: </p>
|
||||||
|
|
||||||
<p><strong>firstName,lastName, username, email, location_id, phone, jobtitle, employee_num</strong>. </p>
|
<p><strong>firstName,lastName, username, email, location_id, phone, jobtitle, employee_num, company_id</strong>. </p>
|
||||||
|
|
||||||
<p>Any additional fields to the right of those fields will be ignored. Email is optional, however users will not be able to recover their passwords or receive EULAs if you do not provide an email address.
|
<p>Any additional fields to the right of those fields will be ignored. Email is optional, however users will not be able to recover their passwords or receive EULAs if you do not provide an email address. If you wish to include a company association, you must reference the ID number of an existing company - companies will not be created on the fly.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@if (config('app.lock_passwords'))
|
@if (config('app.lock_passwords'))
|
||||||
|
|
Loading…
Reference in a new issue