Re: authenticate and password

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17260
interpreted = N
texte = On 4/24/1998 6:24 PM, Peter Ostry so noted...>I use a custom user database and call a page with >
>------------------ >[search db=luz_users.db&eqUserdatarq=[username]&eqPassdatarq=[password]] >[showif [numfound]=0] > [authenticate webshop] >[/showif] >[founditems] >...some code... >[founditems >-------------------- >The user can log in when he writes a valid username and leaves the >password field empty! >The reverse method (user empty, password valid) works as expected. >Wrong values in one or both fields work. >I even changed the order of the search arguments - the same... >The usernames in the database are unique. > >What is wrong?If a field is blank, WebCatalog ignores it when searching. Try modifying your search to read as follows to force the fields to be used in the search, blank or no:[search db=luz_users.db&eqUserdatarq=[username]&eqPassdatarq=[password]&UserBlnk=T& PassBlnk=T]Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Associated Messages, from the most recent to the oldest:

    
  1. Re: authenticate and password (Peter Ostry 1998)
  2. Re: authenticate and password (PCS Technical Support 1998)
  3. Re: authenticate and password (Rob Marquardt 1998)
  4. authenticate and password (Peter Ostry 1998)
On 4/24/1998 6:24 PM, Peter Ostry so noted...>I use a custom user database and call a page with > >------------------ >[search db=luz_users.db&eqUserdatarq=[username]&eqPassdatarq=[password]] >[showif [numfound]=0] > [authenticate webshop] >[/showif] >[founditems] >...some code... >[founditems >-------------------- >The user can log in when he writes a valid username and leaves the >password field empty! >The reverse method (user empty, password valid) works as expected. >Wrong values in one or both fields work. >I even changed the order of the search arguments - the same... >The usernames in the database are unique. > >What is wrong?If a field is blank, WebCatalog ignores it when searching. Try modifying your search to read as follows to force the fields to be used in the search, blank or no:[search db=luz_users.db&eqUserdatarq=[username]&eqPassdatarq=[password]&UserBlnk=T& PassBlnk=T]Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Rob Marquardt

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

color and size options (1997) If Else Statement... (2004) [spawn] processes (2004) PC site chck pls (2003) no global [username] or [password] displayed ... (1997) WebDNA Build Area (linux) (2004) UPDATE PROBLEM (1997) Re:quit command on NT (1997) how to do [search] params on the fly? (2004) Online reference (1997) Sorting (1998) Not really WebCat (1997) alternatives for WebDNA (2004) Linux Beta4 problems with multirecord returns (2000) WCf2 and nested tags (1997) find with exceptions (1997) WebCatalog stalls (1998) How to search dbs across virtual hosts for same domain? (2003) Newbie problem blah blah blah (1997) Shopping Cart Page (1997)