如何在第二次重新生成相同的fristtime确认码 [英] How to regenerate same fristtime confirmationcode at second time

查看:99
本文介绍了如何在第二次重新生成相同的fristtime确认码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我的要求是用户注册完成后我发送邮件给该用户Confirmatoncode。这个确认

代码是我使用Generated()方法生成的。如果用户没有第一次收到邮件(当用户注册完成时)

用户点击resendMail按钮这次邮件也会发送确认密码..

但是秒时间我想和第一次确认码相同如何在第二次

重新生成相同的第一次确认码。请发给我任何一个



谢谢

Hello all

My requirement is when user registration is completed i am sending mail to that user Confirmatoncode. This confirmation
code is i am generating using Generated() method. If user not getting mail at first time(when user registration is completed)
the user click "resendMail" button this time also mail is going with confirmatincode ..
but second time i want to go same firsttime confirmationcode how to regenerate same firsttime confirmationcode at the
second time. Please send me any one

Thanks

推荐答案

我假设您将用户详细信息保存在数据库中,所以保存生成的代码。如果用户要求重新发送电子邮件,只需从数据库中提取代码。

这也可用于提醒用户激活他们的帐户,如果他们没有这样做。



如果有帮助,请标出答案。

谢谢
I assume you save the user details in database, so save also the generated code. If the user asks to resend email just extract the code from the database.
This also can be used to remind users to activate their account if they haven`t done so.

Please mark the answer if it was helpful.
Thanks


将生成的代码保存在数据库中。
Save the generated code in your database.


这篇关于如何在第二次重新生成相同的fristtime确认码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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