疑问(激活用户帐户) [英] doubt(user account activation)

查看:99
本文介绍了疑问(激活用户帐户)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对电子邮件验证有疑问....用户在网站上注册后,一封电子邮件会转到其收件箱,其中显示了他的用户名,密码和激活他的帐户的链接....假设用户单击该链接程序第二次检测到他的帐户已被激活,以及他登录该站点时的另一件事,如果尚未激活该帐户,该程序如何检测到他的帐户尚未被激活
如果有人确实有示例代码,请在此处发布或解释概念

i have a doubt regarding email verification....after an user registers at the site an email goes to his inbox showing his userid,password and a link to activate his account....suppose if the user clicks the link 2nd time how the program detects his account has already been activated and one more thing when he logs into the site and if the account has not been activated how the program detects his account has not been activated
if anybody does have a sample code please post here or explain the concept

推荐答案

我建​​议您需要购买一些基本书籍,然后阅读,然后开始思考就程序在逻辑上的工作方式而言.为什么网站在检查自己的数据库以确认某个帐户是否处于活动状态时会遇到麻烦?
I would suggest you need to buy some basic books, and read them, then start to think in terms of how a program logically works. Why would a website have trouble checking it''s own database to tell that an account is active or not ?


进一步回答克里斯蒂安的问题.

该网站上的用户REGISTERS及其详细信息已记录.
会向用户发送一封电子邮件,其中包含ACTIVATION的链接.
用户单击链接,系统将查找记录的详细信息以激活该帐户.
如果用户第二次尝试激活该帐户,则系统将显示已经完成该帐户.

这是网络身份验证的基础知识.
Further to Christian''s answer.

A user REGISTERS on the site and the details are recorded.
An e-mail is sent to user with a link for ACTIVATION.
The user clicks the link and the system looks up the recorded details to ACTIVATE the account.
If the user tries to ACTIVATE the account for a second time, the system will detext that it has already been done.

This is web-authentication basics.


这篇关于疑问(激活用户帐户)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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