authenticate broken when url not fully specified?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33059
interpreted = N
texte = I'm using Typhoon Pro 3.0.8 on NT, and I have been playing around with the authenticate context. I want to authenticate against my own members.db, so I hijacked the authenticate code from multigroupchecker like so:[showif NotFound=[lookup db=db/members.db&lookinField=emailaddress&value=[username]&returnField=emailaddress¬Found=NotFound]] [authenticate Unauthorized User] [/showif] [showif [url][password][/url]![url][lookup db=db/members.db&lookinField=emailaddress&value=[username]&returnField=passwd¬Found=NotFound][/url]] [authenticate Unauthorized User] [/showif] [search db=db/members.db&eqEMAILADDRESSdatarq=[username]&eqPASSWDdatarq=[url][password][/url]] [showif [numFound]=0] [authenticate Unauthorized User] [/showif] [/search] This code works fine when I specify the full path to the template:http://www.mysite.com/members/default.tplWhen I try to access the page via:http://www.mysite.com/members/the authentication fails. Re-entering my valid user/pass doesn't work, and I have default.tpl set up as one my index files. If I remove the above code from default.tpl, I can access the page through /members/ as expected.Is this expected behavior, and if so, why?I can work around this problem, but it smells like a bug to me...Thanks,Dale -- Dale LaFountain mailto:dalel@darkhorse.com Vice President of Information Technology, Webmaster Dark Horse Comics, Inc. Ph: 503-652-8815 x324 http://www.darkhorse.com/ Fax: 503-652-6917------------------------------------------------------------- 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: authenticate broken when url not fully specified? (WebDNA Support 2000)
  2. authenticate broken when url not fully specified? (Dale LaFountain 2000)
I'm using Typhoon Pro 3.0.8 on NT, and I have been playing around with the authenticate context. I want to authenticate against my own members.db, so I hijacked the authenticate code from multigroupchecker like so:[showif NotFound=[lookup db=db/members.db&lookinField=emailaddress&value=[username]&returnField=emailaddress¬Found=NotFound]] [authenticate Unauthorized User] [/showif] [showif [url][password][/url]![url][lookup db=db/members.db&lookinField=emailaddress&value=[username]&returnField=passwd¬Found=NotFound][/url]] [authenticate Unauthorized User] [/showif] [search db=db/members.db&eqEMAILADDRESSdatarq=[username]&eqPASSWDdatarq=[url][password][/url]] [showif [numFound]=0] [authenticate Unauthorized User] [/showif] [/search] This code works fine when I specify the full path to the template:http://www.mysite.com/members/default.tplWhen I try to access the page via:http://www.mysite.com/members/the authentication fails. Re-entering my valid user/pass doesn't work, and I have default.tpl set up as one my index files. If I remove the above code from default.tpl, I can access the page through /members/ as expected.Is this expected behavior, and if so, why?I can work around this problem, but it smells like a bug to me...Thanks,Dale -- Dale LaFountain mailto:dalel@darkhorse.com Vice President of Information Technology, Webmaster Dark Horse Comics, Inc. Ph: 503-652-8815 x324 http://www.darkhorse.com/ Fax: 503-652-6917------------------------------------------------------------- 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/ Dale LaFountain

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:

Re[3]: 2nd WebCatalog2 Feature Request (1996) Need Sample Template - just purchased (1997) WebCatalog dying in NT (1998) Webmerchant quitting (1998) Strange intermittent WebDNA problems Workaround (2008) WebDNA & HTML Problems (2003) Configuring E-mail (1997) Username for Admin Group (1997) [BULK] [WebDNA] [BULK] Mac OS X LION has no FastCGI (2011) Having trouble installing on Windows XP Pro... (2006) Redirect frame targets (1998) Extended [ConvertChars] (1997) F3 crashing server (1997) target=_blank and form variables (1997) Summing fields (1997) Nested tags count question (1997) Why does WebCat do this? (2001) Credit card types (1997) WebCatalog for guestbook ? (1997) Answer: WebDelivery downloads alias, not original ? (1997)