[ic] Email and &and profile check
Stefan Hornburg (Racke)
racke at linuxia.de
Thu Sep 25 18:29:03 UTC 2008
Davor Ocelic wrote:
> 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.
Unfortunately that didn't work and the customer complained :'(.
With the email field filled, the email_verify field empty and the email
not in the database yet you get no error message.
Well, I could easily whip up a custom order check to solve
this issue.
Regards
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
More information about the interchange-users
mailing list