Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
if(!msg.payload.orbita) {
msg.payload.orbita = {};
}
if(!msg.payload.orbita.directive) {
msg.payload.orbita.directive = [];
}

msg.payload.orbita.directive = [{
    type: "html5",
    options: {
        template: '450x500',
        url :"<Login page URL of your Instance>"
    },
    loginSuccessUtterance: 'success'
}]

msg.payload.orbita.state = "Login"

return msg;
Info

You can use successUtterance: 'success' or loginSuccessUtterance: 'success', to invoke the Intent after the HTML content (Login page) is rendered.

The line msg.payload.orbita.state = "Login" is optional.

If you choose not to use state, you should remove the state in the Loginsuccess Intent. See, How do I use state?

...

The Login Directive and the Inline Login are combined in a single flow in the below attachment.

Attachments
previewfalse
uploadfalse
oldfalse
patterns*.json

...