Re: [WebDNA] What am I doing wrong with authenticate
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 109125
interpreted = N
texte = Hi GovindaJust too say thanks for the pointers, it turned out to be a small typo =elsewhere - as always!!!Cheers=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DOn 23 May 2012, at 14:50, Govinda wrote:>> [showif [username]=3D][authenticate realm=3DmyRealmName][/showif]>> [showif [username]!]>> [search db=3D/admin/-myDatabase.db&eqUSERNAMEVARdatarq=3D[username]]>> [showif [numfound]=3D0][authenticate realm=3DmyRealmName][/showif]=>> [founditems]>> [showif [index]=3D1]>> [hideif [password]=3D[passwordvar]][authenticate =realm=3DmyRealmName][/hideif]>> =09>> All my page html here>>=20>> [/showif]>> [/founditems]>> [/search]>> [/showif]=20>=20>=20> Steve, it looks OK. Though I have never used the 'realm' parameter =with [Authenticate]. try removing the ' realm=3Dzzzzzzzz', and see if =that helps.>=20> In case you are still stuck, try commenting out one more line/context =of the above code, after another.. until you at least get the page to =parse.. and can see your own added debugging lines.. and not a totally =white blank page. Also consider that your code is working fine (the way =it is written), and you are simply not landing inside that [showif =[index]=3D1]...[/showif] where anything outputs to the rendered page in =the browser?>=20> Side note: don't you want to protect your code from breaking in case =someone inputs a password with a comparison character in it? i.e. do =something like this:>=20> [hideif [url][password][/url]=3D[url][passwordvar][/url]]...>=20> ...instead of the current:> [hideif [password]=3D[passwordvar]]...>=20> ...and same thing with comp. chars. in any input username.>=20> BTW, Dear WSC, this:> http://www.webdna.us/page.dna?numero=3D81>=20> ..is less useful than this:> http://docs.webdna.us/pages.html?context=3DAllTags.html#Authenticate>=20> ...which seems backwards, given the timeline.>=20> -Govinda---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
Hi GovindaJust too say thanks for the pointers, it turned out to be a small typo =elsewhere - as always!!!Cheers=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DOn 23 May 2012, at 14:50, Govinda wrote:>> [showif [username]=3D][authenticate realm=3DmyRealmName][/showif]>> [showif [username]!]>> [search db=3D/admin/-myDatabase.db&eqUSERNAMEVARdatarq=3D[username]]>> [showif [numfound]=3D0][authenticate realm=3DmyRealmName][/showif]=>> [founditems]>> [showif [index]=3D1]>> [hideif [password]=3D[passwordvar]][authenticate =realm=3DmyRealmName][/hideif]>> =09>> All my page html here>>=20>> [/showif]>> [/founditems]>> [/search]>> [/showif]=20>=20>=20> Steve, it looks OK. Though I have never used the 'realm' parameter =with [authenticate]. try removing the ' realm=3Dzzzzzzzz', and see if =that helps.>=20> In case you are still stuck, try commenting out one more line/context =of the above code, after another.. until you at least get the page to =parse.. and can see your own added debugging lines.. and not a totally =white blank page. Also consider that your code is working fine (the way =it is written), and you are simply not landing inside that [showif =[index]=3D1]...[/showif] where anything outputs to the rendered page in =the browser?>=20> Side note: don't you want to protect your code from breaking in case =someone inputs a password with a comparison character in it? i.e. do =something like this:>=20> [hideif [url][password][/url]=3D[url][passwordvar][/url]]...>=20> ...instead of the current:> [hideif [password]=3D[passwordvar]]...>=20> ...and same thing with comp. chars. in any input username.>=20> BTW, Dear WSC, this:> http://www.webdna.us/page.dna?numero=3D81>=20> ..is less useful than this:> http://docs.webdna.us/pages.html?context=3DAllTags.html#Authenticate>=20> ...which seems backwards, given the timeline.>=20> -Govinda---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Steve Craig
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:
Getting Emailer to send mail (1997)
UNSUBSCRIBE (2001)
PCS Frames (1997)
Searching multiple fields from one form field (1997)
WebCat and image maps (1997)
sort problems....bug or brain fart? (1997)
[WebDNA] Processor Maxing out (2010)
[WebDNA] Reformatting database headers (2009)
Removing [showif] makes a big difference in speed (1997)
DON'T use old cart file! (1997)
WebMerchant Problem (1999)
NT vs Mac (1997)
RE: creating writefile data from a nested search (1997)
Faxing orders in place of email (1997)
RE: Languages (1997)
Num Sort Descending (2004)
Redirect frame targets (1998)
creating a 60 fields database (1997)
Proper way to save links in a db (2002)
search engine friendly URLS (Mac) (1998)