Re: The Form authentication trick
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35423
interpreted = N
texte = hi Brice:4) on protected.tpl (and others pages) use the usual [protect groupname] tagthis says [protect groupname]. can this work with [authenticate] too?i saw and tryed the demo it works for me.the thing is i'm trying it (the idea you posted in The Formauthentication trick) with the [authenticate] tag and i get the sameresults described by Kenneth Grome. it worked the first time and afterthat....it seems everything works fine untill the browser gets to that login2.tpl is there something else i'm missing?.this is what i do:page #1:form with input names password and username, action=logon1.html.page #2: logon1.html[showif NotFound=[lookupdb=/db/db.db&lookinField=user&value=[username]&returnField=user¬Found=NotFound]][redirect page1.html][/showif][showif [password]![lookupdb=/db/db.db&lookinField=user&value=[username]&returnField=pass¬Found=NotFound]][redirect page1.html][/showif][searchdb=/db/db.db&groupsword=ww&wogroupsdatarq=[groups]&equserdatarq=[username]&eqpassdatarq=[password]][showif [numFound]=0][redirect page1.html][/showif][/search][redirecthttp://[encrypt][username]:[password][/encrypt]@www.mysite.com/login2.html]page #3: logon2.htmlin the header:
the protected page has this in it:[showif NotFound=[lookupdb=/db/db.db&lookinField=user&value=[username]&returnField=user¬Found=NotFound]][authenticate Unauthorized User][/showif][showif [password]![lookupdb=/db/db.db&lookinField=user&value=[username]&returnField=pass¬Found=NotFound]][authenticate Unauthorized User][/showif][searchdb=/db/db.db&groupsword=ww&wogroupsdatarq=[groups]&equserdatarq=[username]&eqpassdatarq=[password]][showif [numFound]=0][authenticate Unauthorized User][/showif][/search]so when i put real username and passwrd in page1.html i reach login2.html and then the ugly dialog box shows up.it never shows me the protected.html. if i enter the password and username again there everything is ok any comment will be helpful.thanks.-------------------------------------------------------------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:
hi Brice:4) on protected.tpl (and others pages) use the usual [protect groupname] tagthis says [protect groupname]. can this work with [authenticate] too?i saw and tryed the demo it works for me.the thing is i'm trying it (the idea you posted in The Formauthentication trick) with the [authenticate] tag and i get the sameresults described by Kenneth Grome. it worked the first time and afterthat....it seems everything works fine untill the browser gets to that login2.tpl is there something else i'm missing?.this is what i do:page #1:form with input names password and username, action=logon1.html.page #2: logon1.html[showif NotFound=[lookupdb=/db/db.db&lookinField=user&value=[username]&returnField=user¬Found=NotFound]][redirect page1.html][/showif][showif [password]![lookupdb=/db/db.db&lookinField=user&value=[username]&returnField=pass¬Found=NotFound]][redirect page1.html][/showif][searchdb=/db/db.db&groupsword=ww&wogroupsdatarq=[groups]&equserdatarq=[username]&eqpassdatarq=[password]][showif [numFound]=0][redirect page1.html][/showif][/search][redirecthttp://[encrypt][username]:[password][/encrypt]@www.mysite.com/login2.html]page #3: logon2.htmlin the header:the protected page has this in it:[showif NotFound=[lookupdb=/db/db.db&lookinField=user&value=[username]&returnField=user¬Found=NotFound]][authenticate Unauthorized User][/showif][showif [password]![lookupdb=/db/db.db&lookinField=user&value=[username]&returnField=pass¬Found=NotFound]][authenticate Unauthorized User][/showif][searchdb=/db/db.db&groupsword=ww&wogroupsdatarq=[groups]&equserdatarq=[username]&eqpassdatarq=[password]][showif [numFound]=0][authenticate Unauthorized User][/showif][/search]so when i put real username and passwrd in page1.html i reach login2.html and then the ugly dialog box shows up.it never shows me the protected.html. if i enter the password and username again there everything is ok any comment will be helpful.thanks.-------------------------------------------------------------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/
Kalin Mintchev
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:
[OT] ISP Windows program (2005)
WebCatalog can't find database (1997)
international time (1997)
Alternating colors (1997)
Need help (1998)
A little syntax help (1997)
RE: [WebDNA] Reformatting database headers (2009)
WebDNA Mail issues (2002)
[OT] Graphic Art Services (2004)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Re1000001: Setting up shop (1997)
DNS Lookup 2 (2000)
HomePage Caution (1997)
Am on the list? (1997)
Playin Tricks (2006)
HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)
about this server and links to who (1997)
Another question (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
FoundItems Question (1998)