Thanks Julien.
We are not using Sitemindr SDK .
We just wrote a snippet of code on login.fcc to display error message.
we are using below java script to display error message based on the cookie:
function getcookie(cookiename) {
var cookiestring=""+document.cookie;
//alert(cookiestring);
var index1=cookiestring.indexOf(cookiename);
if (index1==-1 || cookiename=="") return "";
var index2=cookiestring.indexOf(';',index1);
if (index2==-1) index2=cookiestring.length;
return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}
<script>
var cookiename='SSO_ERROR_MSG';
if(getcookie("SSO_ERROR_MSG")){
document.write(getcookie("SSO_ERROR_MSG"));
createCookie( "SSO_ERROR_MSG" );
}
</script>
We will map response to particular realm with WebAgent-HTTP-Cookie-Variable and SSO_ERROR_MSG=Wrong Credntials.
So whenever user attempts with wrong password/wrong user name he will get Wrong credentials on login page.