如何在3天内为用户设置密码过期警报消息? [英] how to set password expire alert messge for user within before 3 days..?

查看:206
本文介绍了如何在3天内为用户设置密码过期警报消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在3天内为用户设置密码过期警报消息?.

how to set password expire alert messge for user within before 3 days..?
is it possible in Ajax control alert box.....?

推荐答案

对不起,这里没有人会为您编写代码.如果您有想法,
1)用户设置/更改密码时,应存储日期时间
2)用户登录时,请检查当前日期和存储日期之间的日期差.
3)如果差异大于或等于密码重置持续时间(或您指定的持续时间-3天),则提示用户更改密码.
Sorry, no one here would write code for you. If you want to have idea,
1) You should store the date time when user sets/changes the password
2) When user logs in, check the date difference between current and the stored date.
3) If difference is more than or equal to password reset duration (or duration -3 days, as you specified), then prompt the user to change the password.


如果要显示用户登录时发出警报消息,然后按照Prera​​k的指示进行操作.
但是,如果用户在密码到期前三天没有登录,该怎么办.
请在3天前使用Windows服务向用户发送电子邮件.
有一个
If you want to display an alert message when user logs in then do as Prerak said.
But what if the user doesn''t login for the last three days before the password expires.
Use a windows service to send an email to the user before 3 days.
Have a look[^] here


通过比较创建日期和当前日期如果当前日期和创建的日期差异超过3,则提示您更改密码
by comparing created date and current date if current date and created diffrence more than 3 then prompt to it for changing a password


这篇关于如何在3天内为用户设置密码过期警报消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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