在ASP.NET中以注册表单设置密码的有效性 [英] Setting validity for Password in Signup form in ASP.NET

查看:73
本文介绍了在ASP.NET中以注册表单设置密码的有效性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要创建一个注册(注册)表格.我希望密码在20天后过期.我该怎么办.任何帮助将不胜感激...

Hi i need to create a registration (Sign up) form. I want the password to be expired in 20 days.How can i do.Any help would be greatly appreciated...

推荐答案

您好,
创建新注册记录时,需要存储日期.当您从登录表中检索数据时,如果输入的日期超过20天,则需要将输入的日期与当前的日期区分开来.您需要显示密码已过期的消息.
Hello,
You need to store date while creating record for new registration. When you retrieve data from login table you need to differentiate entered date with current date if it is more than 20 days you need to display message like your password is expire.


存储用户名时第一次&pwd(表示注册),将日期/时间戳存储在表中,当用户登录(下次登录)时,您将在右侧检查用户名和密码...如果大于20天,则强制同时更改日期值和当前日期,迫使用户更改密码.
When you store the username & pwd for the first time (means sign up) in the database, store the date/time stamp in your table and when the user login(next time login) to the system you will check for the username & password right... at the same time check for the date value with current date also, if it greater than 20 days force the user to change the password.


这篇关于在ASP.NET中以注册表单设置密码的有效性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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