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:

webcat serving up 2+ versions of the same db? (2000) Rollovers (1999) Encrypt & SetHeader Length Problem (2000) FEW QUESTIONS (1997) Search/sort in URL Was: GuestBook example (1997) Stopping bad HTML propagation ? (1997) Frames and WebCat (1997) Text data with spaces in them... (1997) [WebDNA] Which linux distros for webdna? (2008) Sizes and colors (1999) Different Drive (2003) Reversing [ipaddress] normalization (1998) 2 problems with WebCatalog on Solaris (2001) Include a big block of text (1997) Mac v. NT (1998) Cart Number sequence (1997) color and size options (1997) Emailer choke (1997) [WriteFile] problems (1997) [WebDNA] Sendmail Problems (2008)