mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 07:54:30 -04:00
Adding https suggestion
This commit is contained in:
parent
e9cacf2fdf
commit
a584973eea
@ -89,6 +89,10 @@ class AccountGatewayController extends BaseController
|
|||||||
->orderBy('name')->get();
|
->orderBy('name')->get();
|
||||||
$data['hiddenFields'] = Gateway::$hiddenFields;
|
$data['hiddenFields'] = Gateway::$hiddenFields;
|
||||||
|
|
||||||
|
if ( ! \Request::secure() && ! Utils::isNinjaDev()) {
|
||||||
|
Session::flash('warning', trans('texts.enable_https'));
|
||||||
|
}
|
||||||
|
|
||||||
return View::make('accounts.account_gateway', $data);
|
return View::make('accounts.account_gateway', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ class StartupCheck
|
|||||||
|
|
||||||
// Ensure all request are over HTTPS in production
|
// Ensure all request are over HTTPS in production
|
||||||
if (Utils::requireHTTPS() && !Request::secure()) {
|
if (Utils::requireHTTPS() && !Request::secure()) {
|
||||||
//return Redirect::secure(Request::path());
|
return Redirect::secure(Request::path());
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the database doens't yet exist we'll skip the rest
|
// If the database doens't yet exist we'll skip the rest
|
||||||
|
@ -1141,5 +1141,6 @@ return array(
|
|||||||
'all_pages_header' => 'Show header on',
|
'all_pages_header' => 'Show header on',
|
||||||
'all_pages_footer' => 'Show footer on',
|
'all_pages_footer' => 'Show footer on',
|
||||||
'invoice_currency' => 'Invoice Currency',
|
'invoice_currency' => 'Invoice Currency',
|
||||||
|
'enable_https' => 'We strongly recommend using HTTPS to accept payments online.'
|
||||||
|
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user