Greetings,
I'm using Version 8. I originally tried to use isc.showLoginDialog as a quick and easy way to create an admin login. I've never been able to make it work. I've even had others look at it and they can't figure it out either. I've read all of the documentation on it several times. I also looked at the examples.
I'm passed trying to make it work, but now I'm just curious as to why I can't get it to work. I've tried probably about 6 different variations of the code. The one below is the last iteration. Can you give me a hint as to how this is supposed to work?
I'm using Version 8. I originally tried to use isc.showLoginDialog as a quick and easy way to create an admin login. I've never been able to make it work. I've even had others look at it and they can't figure it out either. I've read all of the documentation on it several times. I also looked at the examples.
I'm passed trying to make it work, but now I'm just curious as to why I can't get it to work. I've tried probably about 6 different variations of the code. The one below is the last iteration. Can you give me a hint as to how this is supposed to work?
Code:
isc.showLoginDialog(function (credentials, dialogCallback) { if (credentials == null) return; // dismissed // send credentials sendCredentials(credentials, function (loginSucceeded) { // report success or failure dialogCallback(loginSucceeded); }) }) function sendCredentials(creds, dialogCallback) { try { isc.DMI.call('VerifyLogin', 'VerifyLoginCtrl', 'validateLogin', creds, dialogCallback); }catch (err) { isc.warn("An exception occurred. " + " Error name: " + err.name + ". Error message: " + err.message); } }
Comment