Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Allow mfa_recovery to get a default value
Sander Dorigo44b571680c35
diff --git a/app/Http/Controllers/Auth/TwoFactorController.php b/app/Http/Controllers/Auth/TwoFactorController.phpindex afafcfa87c..82baf43ed9 100644--- a/app/Http/Controllers/Auth/TwoFactorController.php+++ b/app/Http/Controllers/Auth/TwoFactorController.php@@ -194,7 +194,7 @@ final class TwoFactorController extends Controller*/private function isBackupCode(string $mfaCode): bool{- $list = Preferences::get('mfa_recovery', [])->data;+ $list = Preferences::get('mfa_recovery', [], true)->data;if (!is_array($list)) {$list = [];}@@ -207,7 +207,7 @@ final class TwoFactorController extends Controller*/private function removeFromBackupCodes(string $mfaCode): void{- $list = Preferences::get('mfa_recovery', [])->data;+ $list = Preferences::get('mfa_recovery', [], true)->data;if (!is_array($list)) {$list = [];}