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 registrationtime 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 sensibilityand remarkable more speed - especially with large databases and those typesof 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:
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 registrationtime 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 sensibilityand remarkable more speed - especially with large databases and those typesof 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)