Skip to content

Firefly III: a personal finances manager

Fixes a bug in the 2FA activation thing.

James Cole93a54780ab40
diff --git a/app/Validation/FireflyValidator.php b/app/Validation/FireflyValidator.php
index 76817224bc..636aea80ba 100644
--- a/app/Validation/FireflyValidator.php
+++ b/app/Validation/FireflyValidator.php
@@ -66,10 +66,8 @@ class FireflyValidator extends Validator
}
$secret = Session::get('two-factor-secret');
- /** @var Google2FA $google2fa */
- $google2fa = app(Google2FA::class);
- return $google2fa->verifyKey($secret, $value);
+ return Google2FA::verifyKey($secret, $value);
}
/**