Logout programmatically

Hi Cuba Team,

How to invoke logout action programaticallay. I have executed loginService.logout() method, but how to redirect to login page ?
Thanks

Hi,

in 6.4 you can obtain App instance and call logout:


App.getInstance().logout();

Please note that If there are unsaved changes in opened windows then logout will not be performed and unsaved changes dialog will appear.

1 Like

Thanks Yuriy,

It works