mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Nest HTTP requirements inside a working installation - allows non secure routes to be used to setup the application
This commit is contained in:
parent
5fbd79cb9b
commit
29fcca26f8
@ -316,12 +316,13 @@ class BaseController extends Controller
|
||||
|
||||
public function flutterRoute()
|
||||
{
|
||||
|
||||
if (config('ninja.require_https') && !request()->isSecure()) {
|
||||
return redirect()->secure(request()->getRequestUri());
|
||||
}
|
||||
|
||||
|
||||
if ((bool)$this->checkAppSetup() !== false && Schema::hasTable('accounts') && $account = Account::all()->first()) {
|
||||
|
||||
if (config('ninja.require_https') && !request()->isSecure()) {
|
||||
return redirect()->secure(request()->getRequestUri());
|
||||
}
|
||||
|
||||
$data = [];
|
||||
|
||||
if (Ninja::isSelfHost()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user