Hello and thanks for reading my question.
I can not figure out why this keeps failing, when I type in the word test as the password I get the Echo TEST1 4 is 4 not larger than 3 or did I miss something in math class...laughing
$PwdLength = (int)strlen( $NewPwdRaw );
IF ( 3 < $PwdLength ) { //4 to 15
ECHO "TEST1 ".$PwdLength;
RETURN 302;
}ELSEIF( 16 > $PwdLength ) {
ECHO "TEST2".$PwdLength;
RETURN 302;
}
I started out with
IF ( 4 <= $PwdLength AND 15 >= $PwdLength ) {
RETURN 302;
}
but it kept failing so I broke it up as above to see where and for the life of me I'm not seeing the problem.
Anyway if anyone can see what stupid mistake I'm making please feel free to point it out.