DevOps Cloud (ADM)
Cybersecurity
IT Operations Management
<script language="JavaScript">
function imageSubmit()
{
$.post("/nidp/app/login?id=10",
{
Ecom_User_ID: $("#Ecom_User_ID").val(),
Ecom_Password: $("#Ecom_Password").val(),
option:"credentials"
},
function(data,status){
//alert("Data: " data "\nStatus: " status);
var responseStr = data;
var searchStr = 'top.location.href=\'' location.protocol '//' location.host;
indexVal = responseStr.indexOf(searchStr);
if(indexVal == -1)
{
$("#resultdiv").text('login failed.');
}
else
{
$("#resultdiv").text("login success");
$("#loginContainer").html("welcome <b>" $("#Ecom_User_ID").val() "<b> <a href='/nidp/app/logout'>logout</a>");
}
});
return false;
}
</script>
<nidp base url>/login Example: https://www.idp.com/login