Force Password change
Posted: 2017-08-29 01:49
I'm trying to get my members to change their passwords using the hook files.
I can't seem to get it
the PW-change field is marked a DATE
have the profile set to update the date field when the password is changed.
but I can't get the Date to be checked for over 90 and direct it to the correct page.
Any one have any ideas?
I can't seem to get it
Code: Select all
function account_id_init(&$options, $memberInfo, &$args){
$creationDate=sqlValue("select pw_change from membership_users
where pw_change='pw_change' and memberID='{$data['selectedID']}'");
if($creationDate < strtotime('90 days'))
{
header( "Location: https://xxxxxxx.xom/reports/force_membership_update.php" );
}
else
{
header( "url:account_id_view.php" );
}
}
have the profile set to update the date field when the password is changed.
but I can't get the Date to be checked for over 90 and direct it to the correct page.
Any one have any ideas?