mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 02:34:31 -04:00
Rename .env variable
This commit is contained in:
parent
e76c6265d7
commit
ebeee03694
@ -448,10 +448,10 @@ class AppController extends BaseController
|
||||
|
||||
$command = request()->command;
|
||||
$options = request()->options ?: [];
|
||||
$secret = env('CRON_SECRET');
|
||||
$secret = env('COMMAND_SECRET');
|
||||
|
||||
if (! $secret) {
|
||||
exit('Set a value for CRON_SECRET in the .env file');
|
||||
exit('Set a value for COMMAND_SECRET in the .env file');
|
||||
} elseif (! hash_equals($secret, request()->secret ?: '')) {
|
||||
exit('Invalid secret');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user