Doing some music shopping, I ran into this Verified by Visa check that seems to have been executed in concert with my bank. It wants me to a create a password, fine. But I keep getting:
Your password does not conform to the Password Policy. Please try again.
So, what? Too short, too long? Not enough numbers, too many numbers?
I dig into the JavaScript to try to figure out what it wants from me, and find a link to this: WTF Arcot/Compass form verification
There are a number of fun things going on here (IsNetscapeOnSolaris()?!?) but the cake probably goes to the anyNumbers() function, or the anyLetters() function that looks almost exactly like it:
//checks for numbers
function anyNumbers()
{
var isbad1="err";
var str=document.passwdForm.pin1.value;
//alert("str="+str);
var numbers=new Array("1","2","3","4","5","6","7","8","9","0");
//str=str.toString();
//var isbad1=true;
//alert("about to loop");
for(i=0;i<=str.length;i++){
//alert(str.substring(i,i+1));
for(j=0;j<=numbers.length;j++){
if(str.substring(i,i+1)==numbers[j]){
isbad1="pass";
}
}
}
//alert("isbad1 " + isbad1);
return isbad1;
}