yup that was the issue... line 2120 hard coded minimum chars..
changed to 4 chars and it was fine... also changed the error message to 4 chars just for fun... all on that argument in the php...
the Fields variable for length isn't a variable it seems..
Username coded to 3 ... are least on ours... not sure about the download version... checking now...
yup hardcoded values for those... not linked to the fields variables for those it seems... or its not seeing out value correctly...
Original file posted below
[code:1]<?php echo $tabs->fieldJS; ?>
if (me.value == ""«») {
errorMSG += "<?php echo str_replace( array( "\n", "\r" ), ' ', unhtmlentities( _REGWARN_UNAME ) ); ?>\n";
me.style.backgroundColor = "red";
iserror=1;
} else if (r.exec(me.value) || (me.value.length < 3)) {
errorMSG += "<?php echo str_replace( array( "\n", "\r" ), ' ', sprintf( unhtmlentities(_VALID_AZ09), unhtmlentities( _PROMPT_UNAME ), 2 ) );?>\n";
me.style.backgroundColor = "red";
iserror=1;
} else if (me.style.backgroundColor.slice(0,3)=="red"«») {
me.style.backgroundColor = cbDefaultFieldbackgroundColor;
}
if ((me.value) && (me.value.length < 6)) {
errorMSG += "<?php echo str_replace( array( "\n", "\r" ), ' ', sprintf( unhtmlentities(_VALID_AZ09), unhtmlentities(_REGISTER_PASS), 6 ) );?>\n";
me.style.backgroundColor = "red";
iserror=1;
} else if ((me.value != ""«») && (me.value != me.value)){
errorMSG += "<?php echo unhtmlentities(_REGWARN_VPASS2);?>\n";
me.style.backgroundColor = "red"; me.style.backgroundColor = "red";
iserror=1;
} else {
if (me.style.backgroundColor.slice(0,3)=="red"«») me.style.backgroundColor = cbDefaultFieldbackgroundColor;
if (me.style.backgroundColor.slice(0,3)=="red"«») me.style.backgroundColor = cbDefaultFieldbackgroundColor;
}
if (me.value == ""«») {
errorMSG += "You must assign user to a group.\n";
iserror=1;
}[/code:1]
Post edited by: viper_iii, at: 2009/06/09 23:15