How would you implement database updates via email?

前端 未结 6 523
萌比男神i
萌比男神i 2021-02-04 22:11

I\'m building a public website which has its own domain name with pop/smtp mail services. I\'m considering giving users the option to update their data via email - something sim

6条回答
  •  情书的邮戳
    2021-02-04 22:33

    If the data is somewhat "critical", or at least moderately important, do NOT use their username as the "change-data-address". Example: You might be tempted to create an address like username@domain.com, but instead use username-randomnumer@domain.com where you give them the random number if the visit the web-page. That way people can not update other peoples data just by knowing their username.

提交回复
热议问题