Click here to Skip to main content
15,905,781 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i don't no the logic how to get the forget password from sq-lite database.

What I have tried:

i have tried in google search but i am not getting any correct results for that please any one can help me out for this problem
Posted
Updated 22-Jan-18 21:37pm
Comments
David Crow 23-Jan-18 8:32am    
"...how to get the forget password from sq-lite database."

Wouldn't you get that field in the same fashion as you would any other field?

1 solution

Simple: don't. It's a massive security risk - you should not be able to recover passwords at all. To do that, you have to store the password in clear text, or encrypt it - and both are very bad! Instead, you should hash the password. There is some information on how to do it here: Password Storage: How to do it.[^] - it's in C# so it's probable that you will have to work out the Java equivalent, but it's pretty basic code so that shouldn't be too much of a problem.
When the users forgets his password, you email a random password to his registered email address. He then logs in using that, and you can let him change it to something he might remember.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900