private function setEncodePassword(User $user, $plainPassword)
    {
        $password = $this->encoderFactory->getEncoder($user)->encodePassword(
            $plainPassword,
            $user->getSalt()
        );

        $user->setPassword($password);
    }