Re: [WebDNA] What am I doing wrong with authenticate
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 109121
interpreted = N
texte = > [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]=20Steve, it looks OK. Though I have never used the 'realm' parameter with =[Authenticate]. try removing the ' realm=3Dzzzzzzzz', and see if that =helps.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?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:[hideif [url][password][/url]=3D[url][passwordvar][/url]]......instead of the current:[hideif [password]=3D[passwordvar]]......and same thing with comp. chars. in any input username.BTW, Dear WSC, this:http://www.webdna.us/page.dna?numero=3D81..is less useful than this:http://docs.webdna.us/pages.html?context=3DAllTags.html#Authenticate...which seems backwards, given the timeline.-Govinda=
Associated Messages, from the most recent to the oldest:
> [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]=20Steve, it looks OK. Though I have never used the 'realm' parameter with =
[authenticate]. try removing the ' realm=3Dzzzzzzzz', and see if that =helps.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?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:[hideif
[url][password][/url]=3D
[url][passwordvar][/url]]......instead of the current:[hideif
[password]=3D[passwordvar]]......and same thing with comp. chars. in any input username.BTW, Dear WSC, this:http://www.webdna.us/page.dna?numero=3D81..is less useful than this:http://docs.webdna.us/pages.html?context=3DAllTags.html#Authenticate...which seems backwards, given the timeline.-Govinda=
Govinda
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:
Modifying Carts (1999)
shipping costs (1998)
Missing something simple? (1999)
Re:Signal Raised (1997)
quitting (1997)
affiliate marketing program (1998)
Not really WebCat (1997)
Sort Floating Point Number (2008)
EmailProblem (2003)
OT: Outsourcing & copyrights (2005)
Interpret Around Contexts? (2000)
Negative Quantity to Shopping Cart (2005)
FYI-WebCat Mac or NT (1997)
Using Applescript to process WebCatalog functions (1998)
[include] (1998)
Help with Repost Data msg from form (1997)
HELP WITH DATES (1997)
RE: WebCat: Access denied, but why? - The solution. (1997)
Fax Broadcast (1998)
Emailer Error 550 (Was Strange Crash) (1998)