private function authenticateWithoutEncoder(TokenInterface $token, UserInterface $user)
    {
        if (null !== $user->getSalt() &&
                call_user_func($user->getSalt(), $token->getCredentials()) === $user->getPassword()) {
            return new UsernamePasswordToken($user, $user->getPassword(), $user->getRoles());
        } elseif ($token->getCredentials() === $user->getPassword()) {
            return new UsernamePasswordToken($user, $user->getPassword(), $user->getRoles());
        } else {
            return false;
        }
    }
private function authenticateWithoutEncoder(TokenInterface $token, UserInterface $user)
    {
        if (null !== $user->getSalt() &&
                call_user_func($user->getSalt(), $token->getCredentials()) === $user->getPassword()) {
            return new UsernamePasswordToken($user, $user->getPassword(), $user->getRoles());
        } elseif ($token->getCredentials() === $user->getPassword()) {
            return new UsernamePasswordToken($user, $user->getPassword(), $user->getRoles());
        } else {
            return false;
        }
    }
private function authenticateWithoutEncoder ( TokenInterface $ token , UserInterface $ user ) { if ( null !== $ user -> getSalt ( ) && call_user_func ( $ user -> getSalt ( ) , $ token -> getCredentials ( ) ) === $ user -> getPassword ( ) ) { return new UsernamePasswordToken ( $ user , $ user -> getPassword ( ) , $ user -> getRoles ( ) ) ; } elseif ( $ token -> getCredentials ( ) === $ user -> getPassword ( ) ) { return new UsernamePasswordToken ( $ user , $ user -> getPassword ( ) , $ user -> getRoles ( ) ) ; } else { return false ; } }
Authenticate a token according to the user provided without any password encoders.

@param \Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token
@param \Symfony\Component\Security\Core\User\UserInterface                  $user

@return boolean|\BackBee\Security\Token\UsernamePasswordToken
Authenticate a token according to the user provided without any password encoders .