1
0
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:
Hillel Coren 2016-02-03 20:59:07 +02:00
parent e9cacf2fdf
commit a584973eea
3 changed files with 6 additions and 1 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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.'
);