Fix Two Factor not working on auth

This commit is contained in:
Jack Anderson 2024-12-20 08:32:25 +00:00
parent 0911a1a7ee
commit ca8ab7ca50
2 changed files with 18 additions and 0 deletions

View file

@ -307,6 +307,12 @@ class SecurityController extends AbstractController
return $this->sessionStatus($security);
}
#[Route('/auth/2fa_check', name: 'native_auth_2fa_check', methods: ["GET", "POST"])]
public function nativeCheckTwoFactorCode(Request $request): Response
{
return $this->redirectToRoute('app_2fa_check', $request->query->all());
}
/**
* @param UserInterface $user
* @param array $appStatus