一次性链接(不再) [英] One time link (no more)

查看:294
本文介绍了一次性链接(不再)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成发送注册链接...查看电子邮件但是这个网址分享任何一个人可以注册..所以我能为该链接做什么只能使用一次或在一段时间后过期。



我尝试了什么:



i添加电子邮件和我的Gmail电子邮件地址和密码的功能用于发送链接....

i complete sending registraion link ...vie email but it this url share by some one any one can register ..so what can i do for that link can use only once or after some time expire.

What I have tried:

i add funtion of email and my gmail email address and passwork for sending link....

推荐答案

我这样做的方式是将链接作为注册完成页面链接与GUID查询字符串一起发送。该页面在数据库表中查找GUID,如果存在则完成注册并删除GUID条目。

如果它没有(或它已过期),则拒绝注册。
The way I do it is to send the link as a "registration completion" page link with a GUID query string. The page looks up the GUID in a DB table and if it exists completes the registration and deletes the GUID entry.
If it doesn't (or it's expired) it rejects the registration.


这篇关于一次性链接(不再)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆