Skip to content

Commit

Permalink
fix a discouraged usage in the TwoFactorController
Browse files Browse the repository at this point in the history
  • Loading branch information
m-vo committed Apr 9, 2022
1 parent bea6eef commit 31f1084
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function getResponse(Template $template, ModuleModel $model, Request $
$template->href = $this->pageModel->getAbsoluteUrl().'?2fa=enable';
$template->trustedDevices = $this->container->get('contao.security.two_factor.trusted_device_manager')->getTrustedDevices($user);

return new Response($template->parse());
return $template->getResponse();
}

private function enableTwoFactor(Template $template, Request $request, FrontendUser $user, string $return): Response|null
Expand Down

0 comments on commit 31f1084

Please sign in to comment.