Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #4652
James Colef6b890e284ea
diff --git a/app/Http/Controllers/Auth/TwoFactorController.php b/app/Http/Controllers/Auth/TwoFactorController.phpindex 753e4aeb3a..453725b718 100644--- a/app/Http/Controllers/Auth/TwoFactorController.php+++ b/app/Http/Controllers/Auth/TwoFactorController.php@@ -59,7 +59,7 @@ class TwoFactorController extends Controller{/** @var array $mfaHistory */$mfaHistory = Preferences::get('mfa_history', [])->data;- $mfaCode = $request->get('one_time_password');+ $mfaCode = (string)$request->get('one_time_password');// is in history? then refuse to use it.if ($this->inMFAHistory($mfaCode, $mfaHistory)) {