<%@ Language=JScript %> <% WizproASPObj = Server.CreateObject("WizAspServer.WizApi")//ComExeServer.WizApiTest /**********************************************************************/ /* Check if user with this name exist in Wizcon aplication */ /* if exist return true , else false*/ /**********************************************************************/ function CheckUserInformation(username, userpassword) { try { WizproASPObj.UMVerifyWebUser(username, userpassword); return true; } catch(e) { return false; } } var userName; var password; var isUserValid = false; userName = "" + Request.Form("loginName"); password = "" +Request.Form("loginPassword"); //Response.Write(userName +"
" +password); if((userName == "")||(userName == "undefined")) { Response.Write("
Please write user name and password "+"


"); } else { isUserValid = CheckUserInformation(userName, password); if(isUserValid) { Session("UserName") = userName; Session("UserPassword") =password; //Response.Redirect("Inhibit.asp"); Response.Redirect(Session("StartPage")); //Response.Write(userName +password +"
"); } else { Response.Write("
User is not valid for this Application
"); } } %> <% /*if (errString != "") Response.Write ("" + errString + "
");*/ %>
username:
password: