View Single Post
Old 11-21-2010, 11:16 PM   #3
Pete Zicato
Turns out my CRS is a symptom of TMB.
 
Join Date: Jan 2010
Location: Chicago suburbs
Posts: 2,916
What you want to do is to check the minimum number of times.


bool oklength = PassLength(password);
bool okdigit = containDigit(password);

while (!okLength || !okDigit)
{
if (!okLength)
// err MSG

if (!okDigit)
// err MSG

// get password again


oklength = PassLength(password);
okdigit = containDigit(password);

}
__________________


Talk nerdy to me.
Pete Zicato is offline   Reply With Quote