[ic] Email and &and profile check

Davor Ocelic docelic at spinlocksolutions.com
Thu Sep 25 15:04:36 UTC 2008


On Thu, 25 Sep 2008 16:28:22 +0200
Stefan Hornburg <racke at linuxia.de> wrote:

> Hello, 
> 
> the &and is kind of counterintuitive when it comes to check the same
> variable multiple times:
> 
> email=email_only Please enter a valid email address.
> &and
> email=match email_verify Emails you entered do not match.
> &and
> email=unique userdb:email Unfortunately, an account with this email
> address already exists.
> 
> So if fail to enter an email address at all, I see all three error
> messages at once.

Hm, why do you use &and? Couldn't it just work if you removed
ands and had like:

email=email_only Please enter a valid email address.
email=match email_verify Emails you entered do not match.
email=unique userdb:email Unfortunately, an account with this email

IIRC, that way you'd only get errors from individual checks that
failed.

-doc



More information about the interchange-users mailing list