diff --git a/app/Http/Controllers/TwoFactorController.php b/app/Http/Controllers/TwoFactorController.php index e1f2d68a046e..2fb44afe5ff2 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);