Re: Password protection (Was: Lost Password?)
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44229
interpreted = N
texte = I like to skip the built in WebDNA password stuff myself and use my own. Here is a quick overview of what I do on PW protected pages.So, to being with you need a myUsers.db or something (can't use users.db to do this). Have some meaningful fields likeuid
unamepwordtypeexpiresactiveanyhow... you get the idea.You will need to setup some sign-up forms that grab all this stuff from the new user and add it to the myUsers.db. I like to add a step here and send them an email that has an activation link in it.activate.tpl?u=[uid]or whatever that sets ACTIVE to TRUE after they visit the link. Okay.. so you got a user now. I have a little login form, that has a [setcookie name=loggedin&value=TRUE] if the login (checking username/passwords combo in the database) is successful - in your case you also want to make sure that the account has not expired by checking the expires field against the current date.I also have an include that goes on each PW protected template that check for the existance of that cookie and makes sure its value is TRUE otherwise they get redirected [redirect login.tpl] to a login page.If you need any more specific help, let us know.- CharlesOn Saturday, October 19, 2002, at 07:35 AM, Frank Nordberg wrote:> Does anybody happen to know an easy alternative way to password protect> pages? I need a way to allow users to change their passwords if they> like and a way to redirect non-reistered visitors to a specified> alternative page. A way to specify an expiration date for membership> would be great too-------------------------------------------------------------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:
I like to skip the built in WebDNA password stuff myself and use my own. Here is a quick overview of what I do on PW protected pages.So, to being with you need a myUsers.db or something (can't use users.db to do this). Have some meaningful fields likeuidunamepwordtypeexpiresactiveanyhow... you get the idea.You will need to setup some sign-up forms that grab all this stuff from the new user and add it to the myUsers.db. I like to add a step here and send them an email that has an activation link in it.activate.tpl?u=[uid]or whatever that sets ACTIVE to TRUE after they visit the link. Okay.. so you got a user now. I have a little login form, that has a [setcookie name=loggedin&value=TRUE] if the login (checking username/passwords combo in the database) is successful - in your case you also want to make sure that the account has not expired by checking the expires field against the current date.I also have an include that goes on each PW protected template that check for the existance of that cookie and makes sure its value is TRUE otherwise they get redirected [redirect login.tpl] to a login page.If you need any more specific help, let us know.- CharlesOn Saturday, October 19, 2002, at 07:35 AM, Frank Nordberg wrote:> Does anybody happen to know an easy alternative way to password protect> pages? I need a way to allow users to change their passwords if they> like and a way to redirect non-reistered visitors to a specified> alternative page. A way to specify an expiration date for membership> would be great too-------------------------------------------------------------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/
Charles Kline
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:
The IBC root beer has arrived! (1997)
Error 11 (1996)
[OT] Airport Network (2003)
WC2b15 File Corruption (1997)
math on date? (1997)
SiteGuard Admin Feature ? (1997)
[WebDNA] improvements (2015)
Multiple fields on 1 input (1997)
Append File help needed (2000)
WebCat and HTML/OS (2001)
Can you do this??? and other stuff (1997)
Rounding problem (1998)
multi-part email help (2001)
how to construct a search for not this entire string? (2000)
First postarg not taking in $Commands (1997)
Apache not likeing WebDNA (2008)
[WebDNA] New Webdna framework (2012)
Changing Global template settings (2002)
SKU (1997)
Almost a there but..bye bye NetCloak (1997)