Solved

How to create a password expiry form/code

Posted on 2014-02-20
1
351 Views
Last Modified: 2014-02-21
Hi

I'm using the aspnet membership tables, and I cant change that, my question is the client wants a password Expiry functionality similar to:


GeneratePasswordResetToken that you have for WebMatrix.WebData

Does anyone know can I can create something like that? i.e. someone clicks on the forgotton password, an email is sent to the user with a link, however the email has a 48 hr expiry date.

thanks
0
Comment
Question by:mousemat24
1 Comment
 
LVL 41

Accepted Solution

by:
guru_sami earned 500 total points
ID: 39874597
On the page that user lands when they click on the, you can check the LastPasswordChangedDate of asp.net Membership. Check if it's 2 days or more, redirect them to some other page depending on what action you want to take.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question