I Have md5 encrypted password, how to give the password to user when he uses “Forgot password”?

后端 未结 5 1428
我在风中等你
我在风中等你 2021-01-13 04:50

I have database entry for password in md5 format, but when user uses the \"Forgot password\" then how can i give him/her the desired password?

5条回答
  •  春和景丽
    2021-01-13 05:39

    You can't do it without putting the password in the database, which is undesirable, but you can generate him/her a new password and send it to them. Or a link where they can reset their password.

提交回复
热议问题