Re: The Form authentication trick
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35457
interpreted = N
texte = wait a minute...You said if you relaunch NN, then try logging in w/proper valid values, then you get to the logon2.htmland then the protected.html pops up the window? So you are actually making it *past* the page youreference below called page #3: logon2.html? Is the ugly dialog coming from an [authenticate] in page#3: logon2.html, or from protected.html?Kalin Mintchev wrote:> thanks John>> ok>> yes to both sections:> it pops the ugly window every time now.> i restarted the NN (and i'm on mac too ) it doesn't let me in at all.> if enter i wrong password and username it brings me back to the> page1.html, but when i enter real ones i do get to the logon2.html and> then the protected.html pops up the window.> same like last nite.> any ideas?>> thanks>> On Mon, 31 Jul 2000, John Butler wrote:>>> >> > Kalin Mintchev wrote:>> > > this is what i do:> > > page #1:> > > form with input names password and username, action=logon1.html.> > > page #2: logon1.html> > > [showif NotFound=[lookup> > > db=/db/db.db&lookinField=user&value=[username]&returnField=user¬Found=NotFound]]> > > [redirect page1.html]> > > [/showif]> > > [showif [password]![lookup> > > db=/db/db.db&lookinField=user&value=[username]&returnField=pass¬Found=NotFound]]> > > [redirect page1.html]> > > [/showif]> > > [search> > > db=/db/db.db&groupsword=ww&wogroupsdatarq=[groups]&equserdatarq=[username]&eqpassdatarq=[password]]> > > [showif [numFound]=0]> > > [redirect page1.html]> > > [/showif]> > > [/search]> > > [redirect> > > http://[encrypt][username]:[password][/encrypt]@www.mysite.com/login2.html]> > >> > > page #3: logon2.html> > > in the header:> > >
> > HTTP-EQUIV=REFRESH CONTENT=0;URL=http://www.mysite/protected.html>> > > the protected page has this in it:> > > [showif NotFound=[lookup> > > db=/db/db.db&lookinField=user&value=[username]&returnField=user¬Found=NotFound]]> > > [authenticate Unauthorized User]> > > [/showif]> > > [showif [password]![lookup> > > db=/db/db.db&lookinField=user&value=[username]&returnField=pass¬Found=NotFound]]> > > [authenticate Unauthorized User]> > > [/showif]> > > [search> > > db=/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:
wait a minute...You said if you relaunch NN, then try logging in w/proper valid values, then you get to the logon2.htmland then the protected.html pops up the window? So you are actually making it *past* the page youreference below called page #3: logon2.html? Is the ugly dialog coming from an [authenticate] in page#3: logon2.html, or from protected.html?Kalin Mintchev wrote:> thanks John>> ok>> yes to both sections:> it pops the ugly window every time now.> i restarted the NN (and i'm on mac too ) it doesn't let me in at all.> if enter i wrong password and username it brings me back to the> page1.html, but when i enter real ones i do get to the logon2.html and> then the protected.html pops up the window.> same like last nite.> any ideas?>> thanks>> On Mon, 31 Jul 2000, John Butler wrote:>>> >> > Kalin Mintchev wrote:>> > > this is what i do:> > > page #1:> > > form with input names password and username, action=logon1.html.> > > page #2: logon1.html> > > [showif NotFound=[lookup> > > db=/db/db.db&lookinField=user&value=[username]&returnField=user¬Found=NotFound]]> > > [redirect page1.html]> > > [/showif]> > > [showif [password]![lookup> > > db=/db/db.db&lookinField=user&value=[username]&returnField=pass¬Found=NotFound]]> > > [redirect page1.html]> > > [/showif]> > > [search> > > db=/db/db.db&groupsword=ww&wogroupsdatarq=[groups]&equserdatarq=[username]&eqpassdatarq=[password]]> > > [showif [numFound]=0]> > > [redirect page1.html]> > > [/showif]> > > [/search]> > > [redirect> > > http://[encrypt][username]:[password][/encrypt]@www.mysite.com/login2.html]> > >> > > page #3: logon2.html> > > in the header:> > > > > HTTP-EQUIV=REFRESH CONTENT=0;URL=http://www.mysite/protected.html>> > > the protected page has this in it:> > > [showif NotFound=[lookup> > > db=/db/db.db&lookinField=user&value=[username]&returnField=user¬Found=NotFound]]> > > [authenticate Unauthorized User]> > > [/showif]> > > [showif [password]![lookup> > > db=/db/db.db&lookinField=user&value=[username]&returnField=pass¬Found=NotFound]]> > > [authenticate Unauthorized User]> > > [/showif]> > > [search> > > db=/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/
John Butler
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:
PCS Customer submissions ? (1997)
weiered lookup (2004)
RE: Missing contexts on NT (1997)
WebCat2: Master Counter snippet (1997)
Using EIMS instead of Emailer (1998)
LOOP and IF statements (1997)
Q: old cart serial problem (2000)
[append] vs. [appendfile] delta + question? (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
errors 550, and 108 (1998)
[WebDNA] Froala Editor working with WebDNA (2016)
Help! (1996)
Adding Header Values with [SetHeader] (1998)
Out of the woodwork (2007)
Country & Ship-to address & other fields ? (1997)
Number of Line Items (1998)
Database Updates (1997)
Cross platform problem with Convertchars (2002)
multipart (2004)
WebCatalog for guestbook ? (1997)