Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am using the same code which is generate when create the new application. It is working fine. But i want to expire the email link which are getting after register. I add the code in Identiry.config file as below:

C#
manager.UserTokenProvider =
                   new DataProtectorTokenProvider<ApplicationUser>(dataProtectionProvider.Create("ASP.NET Identity"))
                   {
                       TokenLifespan = TimeSpan.FromHours(72)
                   };


Now can any one help me how to check this expiration in controller method.

Thanks
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900