doutang3760 2011-09-01 01:21
浏览 9
已采纳

我应该使用用户的md5密码通过电子邮件验证他的帐户吗?

I am creating a register form and I will have an email verification. The email will have an activation link that will update verified column from 0 to 1. Since the user's password is hashed with md5 I thought instead of creating a new column with a random number to use as verification, I thought to use his password.

So instead of *domain.com/verification.php?token=new_random_number* I will have domain.com/verification.php?token=md5

How do you find this ?

This is of course just to avoid one column.

  • 写回答

2条回答 默认 最新

  • dtc9222 2011-09-01 01:28
    关注

    Generate a new random ID for the explicit purpose of the email, then you can invalidate/clear the ID after the user has performed the account management action.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 vmware exsi重置后的密码
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面