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:
writing db to disk (1997)
[math date] with non-US date format (2000)
Client-side Image Maps and WebCat? (1998)
Nesting [RAW] (1998)
Need relative path explanation (1997)
WebCat2 - [format thousands] (1997)
PCS Emailer's role ? (1997)
Weird Problem (1997)
writing checkboxes to a database (2000)
Form Data, Back Button and 6.0.1 Patch (2005)
URL encoding (1998)
[WebDNA] Bug in build/version number (2012)
LetterRip and WebCat & more (1998)
emailer on Windows Beta 18 (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Time Tracking (2003)
Secure server question (1997)
Protect (1997)
Secure server question (1997)
WC2b15 File Corruption (1997)