Re: authenticating a second user, the sequel
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14415
interpreted = N
texte = >>
>>[showif [variable]=[username]]>>[authenticate New User]>>[/showif]>>>>This will create a button entitled Authenticate which, when>>clicked, will bring up the browser's authenticate dialog box. The>>person who clicks this button must enter a *different* username and>>password than the values currently cached in the browser.>>Hi Ken,>>This worked fine, but what if I want to send my user to a page where he>gets information extracted from a database based on what he entered in>the authentication dialog. With this script I have to add a link below>your authentication code so that AFTER having registered he goes to his>own page following a link.>Is there a way to send the user to a new protected page after the>authentication is cleared ?Yes!Instead of using the code exactly as I wrote it above, simply change[thisurl] to the path to the page you want your user to login on.Then when he/she enter a new and different (and correct) Username &Password in the browser's dialog box, the user will immediately seethe login page. Remember, the login page must have a[protect] tag init, and the new values the user enters into the Browser'sauthenticate box will have to be valid for the group named in the[protect] tag.What's even better is that if your login page has a [search] contextin it that performs a search based on the Username or Password valuescached by the browseer, that search will retrieve that user's recordsinstantly ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Associated Messages, from the most recent to the oldest:
>>
>>[showif [variable]=
[username]]>>[authenticate New User]>>[/showif]>>>>This will create a button entitled Authenticate which, when>>clicked, will bring up the browser's authenticate dialog box. The>>person who clicks this button must enter a *different* username and>>password than the values currently cached in the browser.>>Hi Ken,>>This worked fine, but what if I want to send my user to a page where he>gets information extracted from a database based on what he entered in>the authentication dialog. With this script I have to add a link below>your authentication code so that AFTER having registered he goes to his>own page following a link.>Is there a way to send the user to a new protected page after the>authentication is cleared ?Yes!Instead of using the code exactly as I wrote it above, simply change
[thisurl] to the path to the page you want your user to login on.Then when he/she enter a new and different (and correct) Username &Password in the browser's dialog box, the user will immediately seethe login page. Remember, the login page must have a
[protect] tag init, and the new values the user enters into the Browser'sauthenticate box will have to be valid for the group named in the
[protect] tag.What's even better is that if your login page has a
[search] contextin it that performs a search based on the Username or Password valuescached by the browseer, that search will retrieve that user's recordsinstantly ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Kenneth Grome
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:
Document Contains No Data (1998)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
[BULK] [WebDNA] abstraction code can be tricky... (2012)
Need help with search title (1998)
serial number generation (1997)
[searh] or [shownext]problem (1998)
Major bug report on rootbeer (1997)
EmailProblem vs EmailComplete (2000)
Re:PCS Customer submissions ? (1997)
New Plug-in and Type 11 errors (1997)
Browser Resolution (1999)
RE: Cart Template (1997)
ShowNext (1997)
What might be the cause for a hicup (2000)
[WebDNA] WebDNA future (2010)
[WebDNA] WebDNA Roll Call (2013)
Waitfor file (2000)
Nitro plugin? (1998)
Running _every_ page through WebCat-error.html (1997)
More than one db with the same namn (was: WC2f3) (1997)