diff --git a/app/Listeners/HandleUserLoggedIn.php b/app/Listeners/HandleUserLoggedIn.php index 7f2d0453d4d0..10208ab1639d 100644 --- a/app/Listeners/HandleUserLoggedIn.php +++ b/app/Listeners/HandleUserLoggedIn.php @@ -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')); + } + */ } } } diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 2d8caa7f3489..290fe99db9b0 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -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.' );