Hi there,
I’m converting my solution out of the default log-in system to a custom dailog log-in system now capable in Servoy 3 in preparation to get my solution LDAP capable.
However, I’m having the problem. I got my log-in check to work fine, however, after entering the correct username/password, I can’t get out of the login screen. Even tho in my code, i put in forms.formname.controller.show()!
I also read up on this thread:
but it didn’t provide a full answer.
below is my sample code, the last lines shows that AFTER it passes authenticaion, it should go to the main menu form. However, it’s just stuck in the log-on screen even tho in debugger, it executes that line of code. Please help!!
CODE:
var username = globals.login_username;
globals.login_name = globals.login_username;
var passwd = globals.login_password;
var userID = security.getUserId(username);
var ok = security.checkPassword(userID, passwd);
var userGroupId = security.getUserGroups(userID)
for (var i = 1; i <= userGroupId.getMaxRowIndex() ; i++)
{
var ug_id = userGroupId.getValue(i,1) // group id for the user
var ug_name = userGroupId.getValue(i,2) // group name
}
globals.login_group = capa_to_employee_file_login_name.employee_grp
var temp = capa_to_employee_file_login_name.employee_grp
if (!ok)
{
application.beep();
plugins.dialogs.showWarningDialog(“Problem with Login”, “Login incorrect. Please try again.”, “OK”);
}
else
{
plugins.dialogs.showWarningDialog(“Login Successful”, “You belong to group " + temp + " !”, “OK”);
forms.capa_main.controller.show() //THIS should take me to the main form right??
}
Using: 3.0.1-build 372, repository version 29 , 1.5.0_06-b05