Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
🤖 Auto commit for release 'develop' on 2026-02-15
JC515d91dbe1bb6
diff --git a/app/Console/Commands/Tools/VerifiesDatabaseConnection.php b/app/Console/Commands/Tools/VerifiesDatabaseConnection.phpindex 11b0db8190..ad9d504c4c 100644--- a/app/Console/Commands/Tools/VerifiesDatabaseConnection.php+++ b/app/Console/Commands/Tools/VerifiesDatabaseConnection.php@@ -1,4 +1,7 @@<?php++declare(strict_types=1);+/** VerifiesDatabaseConnection.php* Copyright (c) 2026 [email protected]@@ -26,6 +29,7 @@ use Illuminate\Console\Command;use Illuminate\Database\QueryException;use Illuminate\Support\Facades\DB;use Illuminate\Support\Facades\Log;+use Exception;class VerifiesDatabaseConnection extends Command{@@ -36,7 +40,7 @@ class VerifiesDatabaseConnection extends Command** @var string*/- protected $signature = 'firefly-iii:verify-database-connection';+ protected $signature = 'firefly-iii:verify-database-connection';/*** The console command description.@@ -50,16 +54,13 @@ class VerifiesDatabaseConnection extends Command*/public function handle(): int{- $loops = 30;- $loop = 0;- $queries = [- 'pgsql' => 'SELECT * FROM pg_catalog.pg_tables;',- 'sqlite' => 'SELECT name FROM sqlite_schema;',- 'mysql' => 'SHOW TABLES;',- ];- $default = config('database.default');+ $loops = 30;+ $loop = 0;+ $queries = ['pgsql' => 'SELECT * FROM pg_catalog.pg_tables;', 'sqlite' => 'SELECT name FROM sqlite_schema;', 'mysql' => 'SHOW TABLES;'];+ $default = config('database.default');if (!array_key_exists($default, $queries)) {$this->friendlyWarning(sprintf('Cannot validate database connection for "%s"', $default));+return Command::SUCCESS;}$query = $queries[$default];@@ -73,21 +74,22 @@ class VerifiesDatabaseConnection extends CommandLog::error(sprintf('Loop #%d: connection failed: %s', $loop, $e->getMessage()));$this->friendlyWarning(sprintf('Database connection attempt #%d failed. Sleep for 10 seconds...', $loop + 1));sleep(10);- } catch (\Exception $e) {+ } catch (Exception $e) {Log::error(sprintf('Loop #%d: not connected yet because of a %s: %s', $loop, get_class($e), $e->getMessage()));$this->friendlyWarning(sprintf('Database connection attempt #%d failed. Sleep for 10 seconds...', $loop + 1));sleep(10);}- $loop++;+ ++$loop;}if ($connected) {Log::debug(sprintf('Connected to database after %d attempt(s).', $loop));$this->friendlyPositive('Connected to the database.');+return Command::SUCCESS;}Log::error('Failed to connect to database.');$this->friendlyError('Failed to connect to the database. Is it up?');+return Command::FAILURE;}-}diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.phpindex 47c124a453..ceab4c0285 100644--- a/app/Http/Controllers/Auth/LoginController.php+++ b/app/Http/Controllers/Auth/LoginController.php@@ -190,8 +190,12 @@ class LoginController extends Controller*/public function showLoginForm(Request $request): Factory|Redirector|RedirectResponse|View{- if('remote_user_guard' === config('auth.defaults.guard')) {- $message = sprintf('Firefly III is configured to use the "remote user guard", but was unable to link you to a user. Are you sure the "%s" header is in place?', config('auth.guard_header'));+ if ('remote_user_guard' === config('auth.defaults.guard')) {+ $message = sprintf(+ 'Firefly III is configured to use the "remote user guard", but was unable to link you to a user. Are you sure the "%s" header is in place?',+ config('auth.guard_header')+ );+return view('errors.error', ['message' => $message]);}Log::channel('audit')->info('Show login form (1.1).');diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.phpindex 75a2fba3d7..36dfb0d282 100644--- a/app/Http/Middleware/Authenticate.php+++ b/app/Http/Middleware/Authenticate.php@@ -88,6 +88,7 @@ class AuthenticateLog::debug('User is authenticated.');$user = auth()->user();$this->validateBlockedUser($user, $guards);+return;}// @noinspection PhpUndefinedMethodInspection@@ -96,9 +97,10 @@ class Authenticatethrow new AuthenticationException('The user is not logged in but must be.', $guards);}}- die('five');++ exit('five');foreach ($guards as $guard) {- die('six');+ exit('six');if ('api' !== $guard) {$this->auth->guard($guard)->authenticate();}@@ -111,7 +113,8 @@ class Authenticatereturn $this->auth->shouldUse($guard); // @phpstan-ignore-line}}- die('seven');++ exit('seven');// this is a massive hack, but if the handler has the oauth exception// at this point we can report its error instead of a generic one.$message = 'Unauthenticated.';@@ -131,10 +134,10 @@ class AuthenticateLog::warning('User is null, throw exception?');}// \Illuminate\Support\Facades\Log::debug(get_class($user));- if ($user instanceof User && 1 === (int)$user->blocked) {- $message = (string)trans('firefly.block_account_logout');+ if ($user instanceof User && 1 === (int) $user->blocked) {+ $message = (string) trans('firefly.block_account_logout');if ('email_changed' === $user->blocked_code) {- $message = (string)trans('firefly.email_changed_logout');+ $message = (string) trans('firefly.email_changed_logout');}Log::warning('User is blocked, cannot use authentication method.');app('session')->flash('logoutMessage', $message);diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.phpindex e9f00bf239..a1d3371335 100644--- a/app/Providers/RouteServiceProvider.php+++ b/app/Providers/RouteServiceProvider.php@@ -42,20 +42,18 @@ class RouteServiceProvider extends ServiceProvider#[Override]public function boot(): void{-// $this->routes(function (): void {-// Route::prefix('api')-// ->middleware('api')-// ->namespace($this->namespace)-// ->group(base_path('routes/api.php'))-// ;--// Route::prefix('api/v1/cron')-// ->middleware('api_basic')-// ->namespace($this->namespace)-// ->group(base_path('routes/api-noauth.php'))-// ;--// Route::middleware('web')->namespace($this->namespace)->group(base_path('routes/web.php'));-// });+ // $this->routes(function (): void {+ // Route::prefix('api')+ // ->middleware('api')+ // ->namespace($this->namespace)+ // ->group(base_path('routes/api.php'))+ // ;+ // Route::prefix('api/v1/cron')+ // ->middleware('api_basic')+ // ->namespace($this->namespace)+ // ->group(base_path('routes/api-noauth.php'))+ // ;+ // Route::middleware('web')->namespace($this->namespace)->group(base_path('routes/web.php'));+ // });}}diff --git a/app/Support/Authentication/RemoteUserGuard.php b/app/Support/Authentication/RemoteUserGuard.phpindex fe97600699..efa97f1a3a 100644--- a/app/Support/Authentication/RemoteUserGuard.php+++ b/app/Support/Authentication/RemoteUserGuard.php@@ -84,7 +84,7 @@ class RemoteUserGuard implements Guardif (null === $userID || '' === $userID) {Log::error(sprintf('No user in header "%s".', $header));- //throw new FireflyException('The guard header was unexpectedly empty. See the logs.');+ // throw new FireflyException('The guard header was unexpectedly empty. See the logs.');return;}diff --git a/app/Support/Binder/CLIToken.php b/app/Support/Binder/CLIToken.phpindex ccd878513d..66486aa356 100644--- a/app/Support/Binder/CLIToken.php+++ b/app/Support/Binder/CLIToken.php@@ -55,6 +55,7 @@ class CLIToken implements BinderInterface}}Log::error(sprintf('Recognized no users by access token "%s"', $value));+throw new NotFoundHttpException();}}diff --git a/app/Support/Export/ExportDataGenerator.php b/app/Support/Export/ExportDataGenerator.phpindex a3c3acc464..21e0670ae7 100644--- a/app/Support/Export/ExportDataGenerator.php+++ b/app/Support/Export/ExportDataGenerator.php@@ -138,6 +138,8 @@ class ExportDataGenerator// @phpstan-ignore-line+ // @phpstan-ignore-line+public function __construct(){$this->accounts = new Collection();diff --git a/app/Support/JsonApi/Enrichments/AvailableBudgetEnrichment.php b/app/Support/JsonApi/Enrichments/AvailableBudgetEnrichment.phpindex 08524d52cc..928c94fbc8 100644--- a/app/Support/JsonApi/Enrichments/AvailableBudgetEnrichment.php+++ b/app/Support/JsonApi/Enrichments/AvailableBudgetEnrichment.php@@ -65,6 +65,7 @@ class AvailableBudgetEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate readonly bool $convertToPrimary; // @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line@@ -90,6 +91,7 @@ class AvailableBudgetEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate array $currencies = [];private array $currencyIds = [];private array $ids = [];diff --git a/app/Support/JsonApi/Enrichments/BudgetLimitEnrichment.php b/app/Support/JsonApi/Enrichments/BudgetLimitEnrichment.phpindex 2e04e18f89..48fc2f998f 100644--- a/app/Support/JsonApi/Enrichments/BudgetLimitEnrichment.php+++ b/app/Support/JsonApi/Enrichments/BudgetLimitEnrichment.php@@ -65,6 +65,7 @@ class BudgetLimitEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate array $currencies = [];private array $currencyIds = [];private Carbon $end;diff --git a/app/Support/JsonApi/Enrichments/PiggyBankEnrichment.php b/app/Support/JsonApi/Enrichments/PiggyBankEnrichment.phpindex 439acbaa29..702de40cf4 100644--- a/app/Support/JsonApi/Enrichments/PiggyBankEnrichment.php+++ b/app/Support/JsonApi/Enrichments/PiggyBankEnrichment.php@@ -67,6 +67,7 @@ class PiggyBankEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate array $accounts = []; // @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line@@ -92,6 +93,7 @@ class PiggyBankEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate array $amounts = [];private Collection $collection;private array $currencies = [];diff --git a/app/Support/JsonApi/Enrichments/PiggyBankEventEnrichment.php b/app/Support/JsonApi/Enrichments/PiggyBankEventEnrichment.phpindex e613d99773..eb5c36ca65 100644--- a/app/Support/JsonApi/Enrichments/PiggyBankEventEnrichment.php+++ b/app/Support/JsonApi/Enrichments/PiggyBankEventEnrichment.php@@ -62,6 +62,7 @@ class PiggyBankEventEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate array $accountIds = []; // @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line@@ -87,6 +88,7 @@ class PiggyBankEventEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate Collection $collection;private array $currencies = [];private array $groupIds = [];diff --git a/app/Support/JsonApi/Enrichments/SubscriptionEnrichment.php b/app/Support/JsonApi/Enrichments/SubscriptionEnrichment.phpindex d0b67b1919..6ffd425955 100644--- a/app/Support/JsonApi/Enrichments/SubscriptionEnrichment.php+++ b/app/Support/JsonApi/Enrichments/SubscriptionEnrichment.php@@ -71,6 +71,7 @@ class SubscriptionEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate readonly bool $convertToPrimary;private ?Carbon $end = null;private array $mappedObjects = [];diff --git a/app/Support/JsonApi/Enrichments/TransactionGroupEnrichment.php b/app/Support/JsonApi/Enrichments/TransactionGroupEnrichment.phpindex 9a99d5336e..f5c9c7b6f3 100644--- a/app/Support/JsonApi/Enrichments/TransactionGroupEnrichment.php+++ b/app/Support/JsonApi/Enrichments/TransactionGroupEnrichment.php@@ -103,6 +103,8 @@ class TransactionGroupEnrichment implements EnrichmentInterface// @phpstan-ignore-line+ // @phpstan-ignore-line+public function __construct(){$this->dateFields = ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date'];diff --git a/app/Support/JsonApi/Enrichments/WebhookEnrichment.php b/app/Support/JsonApi/Enrichments/WebhookEnrichment.phpindex 3c180012a3..f6ae42eb0d 100644--- a/app/Support/JsonApi/Enrichments/WebhookEnrichment.php+++ b/app/Support/JsonApi/Enrichments/WebhookEnrichment.php@@ -67,6 +67,7 @@ class WebhookEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate array $ids = []; // @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line@@ -92,6 +93,7 @@ class WebhookEnrichment implements EnrichmentInterface// @phpstan-ignore-line// @phpstan-ignore-line// @phpstan-ignore-line+ // @phpstan-ignore-lineprivate array $responses = [];private array $triggers = [];private array $webhookDeliveries = [];diff --git a/config/firefly.php b/config/firefly.phpindex a959e7bb23..d495d99f12 100644--- a/config/firefly.php+++ b/config/firefly.php@@ -79,7 +79,7 @@ return [// see cer.php for exchange rates feature flag.],'version' => 'develop/2026-02-15',- 'build_time' => 1771138014,+ 'build_time' => 1771152837,'api_version' => '2.1.0', // field is no longer used.'db_version' => 28, // field is no longer used.diff --git a/package-lock.json b/package-lock.jsonindex ec2a72fdf0..f1b2f15c2e 100644--- a/package-lock.json+++ b/package-lock.json@@ -4240,6 +4240,22 @@"dev": true,"license": "MIT"},+ "node_modules/body-parser/node_modules/qs": {+ "version": "6.14.2",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",+ "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/bonjour-service": {"version": "1.3.0","resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.3.0.tgz",@@ -6191,6 +6207,22 @@"dev": true,"license": "MIT"},+ "node_modules/express/node_modules/qs": {+ "version": "6.14.2",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",+ "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",@@ -9717,9 +9749,9 @@"license": "MIT"},"node_modules/qs": {- "version": "6.14.2",- "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",- "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",+ "version": "6.15.0",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz",+ "integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==","dev": true,"license": "BSD-3-Clause","dependencies": {diff --git a/routes/web.php b/routes/web.phpindex 30bda7090c..5dd343d233 100644--- a/routes/web.php+++ b/routes/web.php@@ -73,18 +73,18 @@ Route::group(});-//Route::group(+// Route::group(// ['middleware' => 'binders-only', 'namespace' => 'FireflyIII\Http\Controllers\System', 'as' => 'cron.', 'prefix' => 'cron'],// static function (): void {// Route::get('run/{cliToken}', ['uses' => 'CronController@cron', 'as' => 'cron']);// }-//);+// );Route::group(['middleware' => ['binders-only'], 'namespace' => 'FireflyIII\Http\Controllers\System'],static function (): void {// Route::get('offline', static fn () => view('errors.offline'));- Route::get('health', ['uses' => 'HealthcheckController@check', 'as' => 'healthcheck'])->withoutMiddleware(['web']);+ Route::get('health', ['uses' => 'HealthcheckController@check', 'as' => 'healthcheck'])->withoutMiddleware(['web']);});