org.visallo.logout

Override logout

Register a handler that is notified of logout. Happens before the request to logout.

If the handler returns false all other logout handlers are skipped and the default logout process is cancelled.

Example

registry.registerExtension('org.visallo.logout', function() {
    window.location.href = '/logout';
    return false;
});

Registration

registry.registerExtension("org.visallo.logout", config) → {boolean}

Source:
Tutorials:
See:
Configuration Properties:
Name Type Description
config function

The function to call during logout.

Returns:

To cancel logout return false

Type
boolean

Validation Function

Extensions registered must pass this validation check to be used.

function extensionValidator(e) {
    return _.isFunction(e);
}