Revealing detailed validation algorithms for passwords on the client is a
security issue so validator does not allow it by default. Also, you
should be able to replace [a-zA-Z_0-9] with \w.
David
--- Matt Bathje <[EMAIL PROTECTED]> wrote:
> Eric Giguere wrote:
> > Hi all
> > I have a problemes with the commons-validator 1.1.3 javascript
> > implementation for validating masks.
> > I tried to validate user name and password on a form.
> >
> > For testing purposes, I've set both fields with the same regexp in the
>
> > validation.xml file:
> > ^[a-zA-Z_0-9][a-zA-Z_0-9!^$&%]{5,14}$
> > The username get validated ok but not the password. It is possible? Is
>
> > the fact that the control shows **** as data (password field) breaks
> the
> > validation?
> >
>
>
> The javascript side of the mask validation only works on fields with
> type hidden, text, textarea or file.
>
>
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]