Welcome to WebmasterWorld Guest from 54.160.254.203

Forum Moderators: open

Message Too Old, No Replies

Database table disassociation security - lost password questions

     
8:48 pm on Oct 25, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts: 3145
votes: 12


I've begun working with somewhat sensitive information being stored in a database and I've figured out that I can use generate a hash for table association on data the user provides (such as their password).

The problem I'm not entirely certain how to deal with is dealing with users who have lost their password. One solution I read was to create a user/hash association elsewhere besides the database. I can think of a couple places such as having it stored in a flat file though that would still be on the server. I could also have an email account created and have the password and user id automatically sent to that email address which could be on a different server.

Thoughts please?

- John
9:21 pm on Oct 26, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 9, 2002
posts:861
votes: 0


If they lose their password, just give them a screen to enter their email address, then generate and send them a new one. Then give them the opportunity to change it to something friendlier once they've logged back in.

No point storing hashed passwords if you're going to have to put a key under a doormat somewhere.