mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Adding https suggestion
This commit is contained in:
parent
e9cacf2fdf
commit
a584973eea
@ -89,6 +89,10 @@ class AccountGatewayController extends BaseController
|
||||
->orderBy('name')->get();
|
||||
$data['hiddenFields'] = Gateway::$hiddenFields;
|
||||
|
||||
if ( ! \Request::secure() && ! Utils::isNinjaDev()) {
|
||||
Session::flash('warning', trans('texts.enable_https'));
|
||||
}
|
||||
|
||||
return View::make('accounts.account_gateway', $data);
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ class StartupCheck
|
||||
|
||||
// Ensure all request are over HTTPS in production
|
||||
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
|
||||
|
@ -1141,5 +1141,6 @@ return array(
|
||||
'all_pages_header' => 'Show header on',
|
||||
'all_pages_footer' => 'Show footer on',
|
||||
'invoice_currency' => 'Invoice Currency',
|
||||
'enable_https' => 'We strongly recommend using HTTPS to accept payments online.'
|
||||
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user