src/Sulu/Bundle/SecurityBundle/Controller/ResettingController.php
private function deleteToken(UserInterface $user)
    {
        $em = $this->getDoctrine()->getManager();
        $user->setPasswordResetToken(null);
        $user->setPasswordResetTokenExpiresAt(null);
        $user->setPasswordResetTokenEmailsSent(null);
        $em->persist($user);
        $em->flush();
    }
private function deleteToken(UserInterface $user)
    {
        $em = $this->getDoctrine()->getManager();
        $user->setPasswordResetToken(null);
        $user->setPasswordResetTokenExpiresAt(null);
        $user->setPasswordResetTokenEmailsSent(null);
        $em->persist($user);
        $em->flush();
    }
private function deleteToken ( UserInterface $ user ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ user -> setPasswordResetToken ( null ) ; $ user -> setPasswordResetTokenExpiresAt ( null ) ; $ user -> setPasswordResetTokenEmailsSent ( null ) ; $ em -> persist ( $ user ) ; $ em -> flush ( ) ; }
Deletes the user's reset-password-token.

@param UserInterface $user
Deletes the user s reset - password - token .