FOS\UserBundle\Form\ResetPasswordForm::process PHP Method

process() public method

public process ( FOS\UserBundle\Model\UserInterface $user )
$user FOS\UserBundle\Model\UserInterface
    public function process(UserInterface $user)
    {
        $this->setData(new ResetPassword($user));
        if ('POST' == $this->request->getMethod()) {
            $this->bind($this->request);
            if ($this->isValid()) {
                $user->setPlainPassword($this->getNewPassword());
                $user->setConfirmationToken(null);
                $user->setEnabled(true);
                $this->userManager->updateUser($user);
                return true;
            }
        }
        return false;
    }