Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix var.
James Cole50172c327b59
diff --git a/app/Support/Binder/CLIToken.php b/app/Support/Binder/CLIToken.phpindex 66c4a3dc31..1a1581da23 100644--- a/app/Support/Binder/CLIToken.php+++ b/app/Support/Binder/CLIToken.php@@ -42,13 +42,13 @@ class CLIToken implements BinderInterface$users = $repository->all();// check for static token- if (hash_equals($value, config('firefly.static_cron_token')) && 32 === strlen(config('firefly.static_cron_token'))) {+ if (hash_equals($value, (string)config('firefly.static_cron_token')) && 32 === strlen(config('firefly.static_cron_token'))) {return $value;}foreach ($users as $user) {$accessToken = Preferences::getForUser($user, 'access_token');- if (null !== $accessToken && hash_equals($accessToken->data, $value)) {+ if (null !== $accessToken && hash_equals((string)$accessToken->data, $value)) {Log::info(sprintf('Recognized user #%d (%s) from his access token.', $user->id, $user->email));return $value;