From e176be086a88a98175b8abcb4f10f45ca18dca1b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 15 Mar 2021 07:18:53 +1100 Subject: [PATCH] Fixes for 2FA --- app/Http/Controllers/TwoFactorController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TwoFactorController.php b/app/Http/Controllers/TwoFactorController.php index e1f2d68a04..2fb44afe5f 100644 --- a/app/Http/Controllers/TwoFactorController.php +++ b/app/Http/Controllers/TwoFactorController.php @@ -51,7 +51,7 @@ class TwoFactorController extends BaseController $secret = request()->input('secret'); $oneTimePassword = request()->input('one_time_password'); - if (! $secret || ! \Google2FA::verifyKey($secret, $oneTimePassword)) { + if (! $secret || ! Google2FA::verifyKey($secret, $oneTimePassword)) { return response()->json('message' > ctrans('texts.invalid_one_time_password')); } elseif (! $user->google_2fa_secret && $user->phone && $user->confirmed) { $user->google_2fa_secret = encrypt($secret);