Skip to content

Has to create login page and change password page

KRayudu V

Asked Sep 3, 2013, 9:55 AM EDT2 answers
Share
LinkedInX
My project requirement: 
i have to create registration page, login page and change password page.i have done this  task
now i got new requirement.Actually the password  has to expire every 30 days.
How to write a query for this.Can any one help me on this

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Add a field where you will record the date when the user change his pw. From that you can check if the pw is already 30 days old.
    0
  • Suthish Nair
    0
    As Irine said, compare last password changed date against current date (getdate()). If the number of days is greater than 30, then redirect the user to password change page.
    0