Set count down day for the password field in a table user of SQL

830 Views Asked by At

I have to set count down day for the password field in a table user to renew again by user.

If not renewed he should not be able to login.

This should be done in SQL user table, and should be done every time after a 30 day expiry period.

So please help me in this....

1

There are 1 best solutions below

0
On BEST ANSWER

Store the password created date in user records table.

Set up a job that runs every day to query from this the table and retrieve the records where currentdate-passwordcreateddate > 30.

Set up job to send out notification to users in this result set.