Re: Password expiration script
| From: | xfedex | Date: | Thu, 31 Mar 2005 20:45:08 +0000 |
| Subject: | Re: Password expiration script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211984@lists.php.net to get a copy of this message | ||
On Thu, 31 Mar 2005 14:18:31 -0500, Bosky, Dave <Dave.Bosky@htcinc.net> wrote:
> I'm looking for a script that would require a user to change their password
> every 30 days. Does anyone use a script that has functionality similar to
> what I'm looking for?
>
> Thanks,
>
> Dave
>
I got do it so using a DBquery
$sql = 'SELECT TO_DAYS(NOW()) - TO_DAYS(\''.$last_pass_chg.'\');';