hi to all,
Here i'm doing register module i want to change password for every 60 days.After 6 days user cannot be login.if the user change the password then only the user will be login.how can i do in mvc5.So kindle help for me.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Anand ThakurRank #928 · 2.2K reputationPosted Aug 6, 2014, 4:32 AM EDT
keep one field in database login table(or you may have different name) say "updatedOn", when user update his/her password, update this filed with current date.
when user login, check this date is less than 60 days from current date otherwise display the password change screen.