move the password expiry date to be php generated so it works fine on all databases

pull/248/head
David Goodwin 6 years ago
parent 8632cbd1a9
commit 9cc04df973

@ -1782,7 +1782,7 @@ function db_insert($table, array $values, $timestamp = array('created', 'modifie
if (db_sqlite()) {
$values['password_expiry'] = "datetime('now', '$password_expiration_value day')";
} else {
$values['password_expiry'] = "now() + interval " . $password_expiration_value . " day";
$values['password_expiry'] = date('Y-m-d H:i', strtotime("+$password_expiration_value day"));
}
}
} else {

Loading…
Cancel
Save