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:
parent
c5c9481ea7
commit
65484c67f4
@ -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'));
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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.'
|
||||
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user