mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #4652
This commit is contained in:
parent
b47614c965
commit
f6b890e284
@ -59,7 +59,7 @@ class TwoFactorController extends Controller
|
|||||||
{
|
{
|
||||||
/** @var array $mfaHistory */
|
/** @var array $mfaHistory */
|
||||||
$mfaHistory = Preferences::get('mfa_history', [])->data;
|
$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.
|
// is in history? then refuse to use it.
|
||||||
if ($this->inMFAHistory($mfaCode, $mfaHistory)) {
|
if ($this->inMFAHistory($mfaCode, $mfaHistory)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user