mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Account controller
This commit is contained in:
parent
06e2bcbf83
commit
2624c97935
@ -47,13 +47,13 @@ class CreateAccount
|
|||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
// if (config('ninja.environment') == 'selfhost' && Account::count() == 0) {
|
if (config('ninja.environment') == 'selfhost' && Account::count() == 0) {
|
||||||
// return $this->create();
|
return $this->create();
|
||||||
// } elseif (config('ninja.environment') == 'selfhost' && Account::count() > 1) {
|
} elseif (config('ninja.environment') == 'selfhost' && Account::count() > 1) {
|
||||||
// return response()->json(['message' => Ninja::selfHostedMessage()], 400);
|
return response()->json(['message' => Ninja::selfHostedMessage()], 400);
|
||||||
// } elseif (! Ninja::boot()) {
|
} elseif (! Ninja::boot()) {
|
||||||
// return response()->json(['message' => Ninja::parse()], 401);
|
return response()->json(['message' => Ninja::parse()], 401);
|
||||||
// }
|
}
|
||||||
|
|
||||||
return $this->create();
|
return $this->create();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user