Warning: Undefined variable $namespace in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 3
;
Warning: Undefined variable $use_statements in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 5
Warning: Undefined variable $use_attributes in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 7
/**
* @Route("/reset-password")
*/
class
Warning: Undefined variable $class_name in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 14
extends AbstractController
{
use ResetPasswordControllerTrait;
private $resetPasswordHelper;
private $entityManager;
public function __construct(ResetPasswordHelperInterface $resetPasswordHelper, EntityManagerInterface $entityManager)
{
$this->resetPasswordHelper = $resetPasswordHelper;
$this->entityManager = $entityManager;
}
/**
* Display & process form to request a password reset.
Warning: Undefined variable $use_attributes in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 29
*
* @Route("", name="app_forgot_password_request")
*/
public function request(Request $request, MailerInterface $mailer): Response
{
$form = $this->createForm(
Warning: Undefined variable $request_form_type_class_name in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 39
::class);
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
return $this->processSendingPasswordResetEmail(
$form->get('
Warning: Undefined variable $email_field in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 44
')->getData(),
$mailer
);
}
return $this->render('reset_password/request.html.twig', [
'requestForm' => $form->createView(),
]);
}
/**
* Confirmation page after a user has requested a password reset.
Warning: Undefined variable $use_attributes in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 56
*
* @Route("/check-email", name="app_check_email")
*/
public function checkEmail(): Response
{
// Generate a fake token if the user does not exist or someone hit this page directly.
// This prevents exposing whether or not a user was found with the given email address or not
if (null === ($resetToken = $this->getTokenObjectFromSession())) {
$resetToken = $this->resetPasswordHelper->generateFakeResetToken();
}
return $this->render('reset_password/check_email.html.twig', [
'resetToken' => $resetToken,
]);
}
/**
* Validates and process the reset URL that the user clicked in their email.
Warning: Undefined variable $use_attributes in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 79
*
* @Route("/reset/{token}", name="app_reset_password")
*/
public function reset(Request $request,
Warning: Undefined variable $password_hasher_class_details in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 87
Fatal error: Uncaught Error: Call to a member function getShortName() on null in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php:87
Stack trace:
#0 {main}
thrown in /home/projetwewv/www/licence00/monapp/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 87