Re: Hiding Contexts

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 36470
interpreted = N
texte = on 23.08.2000 23:15, John Butler at john@feeling-goods.com wrote:> I would add that the search you wrote Peter doesn't check for default blank > username/password, right? (I.e. if they are blank as they are when the user > first comes in a domain or fails an authentication then search finds *all* the > client records.)Right. I forgot it.In fact I seldom check for blank fields but rather ensure at registration time that neither blank nor duplicate login data can get into the database. This returns exactly 1 record for a valid login. Here is the modified code, the difference is just in [showif]:[search db=clients.db&eqDB_USERdatarq=[username]&eqDB_PASSdatarq=[password]] [showif [numfound]!1] [authenticate] [/showif] [/search]One might add &allcase=t to the search string which gives case sensibility and remarkable more speed - especially with large databases and those types of includes which are called on every page. Peter ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Hiding Contexts (Peter Ostry 2000)
  2. Re: Hiding Contexts (John Butler 2000)
  3. Re: Hiding Contexts (Peter Ostry 2000)
  4. Re: Hiding Contexts (Kenneth Grome 2000)
  5. Hiding Contexts (Steve Dannaway 2000)
on 23.08.2000 23:15, John Butler at john@feeling-goods.com wrote:> I would add that the search you wrote Peter doesn't check for default blank > username/password, right? (I.e. if they are blank as they are when the user > first comes in a domain or fails an authentication then search finds *all* the > client records.)Right. I forgot it.In fact I seldom check for blank fields but rather ensure at registration time that neither blank nor duplicate login data can get into the database. This returns exactly 1 record for a valid login. Here is the modified code, the difference is just in [showif]:[search db=clients.db&eqDB_USERdatarq=[username]&eqDB_PASSdatarq=[password]] [showif [numfound]!1] [authenticate] [/showif] [/search]One might add &allcase=t to the search string which gives case sensibility and remarkable more speed - especially with large databases and those types of includes which are called on every page. Peter ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Peter Ostry

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:

Newbie problem blah blah blah (1997) emailer (1997) WebCat for Site Search? (1997) Help! WebCat2 bug (1997) Emailer Set Up (1997) Has anyone built this already? (2003) problem: search crashes webstar (1997) Beta version-Mac? (was Emailer update for Mac?) (1998) RE: [sendmail]- bcc? (1998) [quantity] - spoke too soon (1997) Cookies and WebCat?? (1999) Thanks Grant (1997) E-mailer application times out (1998) EXPR text bug? (2000) Nutscrape Doesn't Render Right (2002) WebTen and WebCat (1997) HELP: OS X Problem... (2000) A Global Variable (1997) Execute Applescript (1997) dos performance (1998)