public function authenticate(GenericUserInterface $user, $credential)
    {
        $userAttributes = $user->getAttributes();
        if (empty($userAttributes)) {
            throw new IdentityNotFoundException();
        }
        $this->store($user->getAttributes());

        return true;
    }
public function authenticate(GenericUserInterface $user, $credential)
    {
        $userAttributes = $user->getAttributes();
        if (empty($userAttributes)) {
            throw new IdentityNotFoundException();
        }
        $this->store($user->getAttributes());

        return true;
    }
public function authenticate ( GenericUserInterface $ user , $ credential ) { $ userAttributes = $ user -> getAttributes ( ) ; if ( empty ( $ userAttributes ) ) { throw new IdentityNotFoundException ( ) ; } $ this -> store ( $ user -> getAttributes ( ) ) ; return true ; }
Authenticates user with identity

@param \Vegas\Security\Authentication\GenericUserInterface $user
@param $credential
@throws \Vegas\Security\Authentication\Exception\IdentityNotFoundException
@return bool
Authenticates user with identity