1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Check APP_KEY is set

This commit is contained in:
Hillel Coren 2017-07-17 17:16:33 +03:00
parent c5c9481ea7
commit 65484c67f4
2 changed files with 9 additions and 0 deletions

View File

@ -77,6 +77,13 @@ class HandleUserLoggedIn
if (! $gateway || $gateway->name !== 'Custom') {
Session::flash('error', trans('texts.error_incorrect_gateway_ids'));
}
/*
if (! env('APP_KEY')) {
Session::flash('error', trans('texts.error_app_key_not_set'));
} elseif (strstr(env('APP_KEY'), 'SomeRandomString')) {
Session::flash('error', trans('texts.error_app_key_set_to_default'));
}
*/
}
}
}

View File

@ -2302,6 +2302,8 @@ $LANG = array(
'app_version' => 'App Version',
'ofx_version' => 'OFX Version',
'gateway_help_23' => ':link to get your Stripe API keys.',
'error_app_key_not_set' => 'Error: the APP_KEY value is not set in the .env file.',
'error_app_key_set_to_default' => 'Error: the APP_KEY value is set to the default in the .env file.'
);