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:
parent
01439a0f43
commit
451faaea26
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user