Jet 1.0 Login-plugin

Hi

The manual for Webix Jet 1.0 has a section about a Login-plugin. However, this plugin does not seem to exist when I look at the Jet source.

But, the functionality seems to be in the User-plugin. At least the methods described for the Login-plugin exists in the User-plugin.

I just really would like som examples of how to get it working.
I thing that the plugin needs to be passed some sort of userModel, that should do the actual authorization/authentication of the user and return something from a getStatus()-method. I just cant figure out what it is :-/

^ Friendly bump. what is this? it’s missing…

Truly, the name of the plugin is User and we will correct the manual.

As for the demo, please check the following branch of the demo app:

Particularly, the usage of this plugin:

Also, please pay attention at the reference to devServer path in `webpack.config.js. By default, it’s

devServer:{
	proxy:{
		"/server" : "http://localhost/webix/jet/jet-start/"
	}
},

You may need to change it regarding your location of jet-start

Hi! I’m trying to implement this plugin (user plugin). The login works fine but I want to implement the logout clicking the logout option of the menu but I don’t know how exactly call the logout() method, any idea?

Hi @mewtown

Please check the related docs. As well as login, the logout method can be called as

this.app.getService("user").logout()

Hi,

I’m working on logout currently. But when I use

this.app.getService(“user”).logout()

It’s complain Uncaught TypeError: Cannot read property ‘getService’ of undefined.

please help.

looks like you call it from webix view
try this this.$scope.app.getService("user").logout()