From 93a54780ab403179ed35f44536196f3388dfbd82 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 24 Jun 2016 21:58:57 +0200 Subject: [PATCH] Fixes a bug in the 2FA activation thing. --- app/Validation/FireflyValidator.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); } /**