Fixes #2352
This commit is contained in:
@@ -814,7 +814,7 @@ class UsersController extends Controller
|
||||
'phone' => trim(e($row[5])),
|
||||
'jobtitle' => trim(e($row[6])),
|
||||
'employee_num' => trim(e($row[7])),
|
||||
//'company_id' => Company::getIdForUser($row[8]),
|
||||
'company_id' => Company::getIdForUser($row[8]),
|
||||
'permissions' => '{"user":1}',
|
||||
'notes' => 'Imported user'
|
||||
);
|
||||
|
||||
@@ -32,9 +32,9 @@ Create a User
|
||||
<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>
|
||||
|
||||
@if (config('app.lock_passwords'))
|
||||
|
||||
Reference in New Issue
Block a user