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 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Password protection (Was: Lost Password?) (Frank Nordberg 2002)
  2. Re: Password protection (Was: Lost Password?) (Charles Kline 2002)
  3. Password protection (Was: Lost Password?) (Frank Nordberg 2002)
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:

forms and variables (1998) Summary search -- speed (1997) Firesite and WebCat (1999) formatting search results (1999) WebCatalog 4.0.2b5 available (2000) [WebDNA] Help with STMP Setup using Authentication with Google (2016) Running a store on BOTH http and https (1998) PCS Emailer's role ? (1997) Help name our technology! (1997) NewCart+Search with one click ? (1997) Include (1998) Windows XP and cookies (2004) webcat- multiple selection in input field (1997) [format xs] freeze (1997) Rhapsody? (1997) RE: File Uploads: WebCat/SiteEdit (1998) Sort on time (2003) Nested vs conditional (1997) Cookies (1999) [UPPERCASE] (1997)