src/Controller/Backend/ResetPasswordController.php
/**
     * Confirmation page after a user has requested a password reset.
     *
     * @Route("/check-email", name="bolt_check_email")
     */
Confirmation page after a user has requested a password reset.
Confirmation page after a user has requested a password reset .
public function checkEmail(): Response
    {
        if (! $this->canCheckEmail()) {
            return $this->redirectToRoute('bolt_forgot_password_request');
        }
        return $this->render('reset_password/check_email.html.twig', [
            'tokenLifetime' => $this->resetPasswordHelper->getTokenLifetime(),
        ]);
    }
public function checkEmail ( ) : Response { if ( ! $ this -> canCheckEmail ( ) ) { return $ this -> redirectToRoute ( 'bolt_forgot_password_request' ) ; } return $ this -> render ( 'reset_password/check_email.html.twig' , [ 'tokenLifetime' => $ this -> resetPasswordHelper -> getTokenLifetime ( ) , ] ) ; }
Confirmation page after a user has requested a password reset.
Confirmation page after a user has requested a password reset .
// We prevent users from directly accessing this page