1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Create company for ninja reseller account

This commit is contained in:
Hillel Coren 2017-01-08 17:52:38 +02:00
parent 01439a0f43
commit 451faaea26

View File

@ -336,11 +336,15 @@ class AccountRepository
if ($account) {
return $account;
} else {
$company = new Company();
$company->save();
$account = new Account();
$account->name = 'Invoice Ninja';
$account->work_email = 'contact@invoiceninja.com';
$account->work_phone = '(800) 763-1948';
$account->account_key = NINJA_ACCOUNT_KEY;
$account->company_id = $company->id;
$account->save();
$random = str_random(RANDOM_KEY_LENGTH);