Hello,
I have a login form (login.aspx). If the user enters the right credentials, i want to redirect the user to the corresponding page with his role..(admin, manager, etc…)
How can i redirect to another page? Preferably to an .aspx page not a .jsp one…
I followed your example:
loginOk= false;
isc.showLoginDialog(function (credentials, dialogCallback)
{
var request = isc.RPCRequest.create(
{
actionURL: "Admin.aspx",
httpMethod: "GET",
contentType: "text/xml",
params: {name: credentials.username,
pass: credentials.password},
useSimpleHttp: true,
serverOutputAsString: true,
callback: "checkLogin(rpcResponse, rpcRequest)",
myDialogCallback : dialogCallback
})
isc.RPCManager.sendRequest(request);
})
function checkLogin(response, request)
{
[B]//if (username=="Gigi"&& password=="abc") [/B]
//{
loginOk= true;
//}
//else
//{
//loginOk= false;
//}
request.myDialogCallback(loginOk);
[B]//response.sendRedirect("Admin.aspx");[/B]
}
And also how can i check those credentials? From where do i get the name and pass strings?