i nid to set a generated password to email, a link to the mail for user to change to a better password, now the generated password shold expire after few hours how do i do...at the moment am genearting the password effectivly, problem is settimng it expire...how do i do
mayreeh
0
Newbie Poster
Recommended Answers
Jump to PostYou must add one more column password_last_date, when u insert record, add timestamp to that field.
Now when you check login, compare current datetime and datetime in that password_last_date field to check whether it is expired or not.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.