You are here

function password_policy_update_7104 in Password Policy 7

Preserve "Admin (UID=1) password expires" setting.

For increased security, the admin (UID=1) password is no longer exempt from password expiration by default. That is, "Admin (UID=1) password expires" is now checked by default.

This database update will keep the current setting so that the change in the default will have no effect on existing installations.

File

./password_policy.install, line 461
Password Policy module installation and upgrade code.

Code

function password_policy_update_7104() {
  $current_setting = variable_get('password_policy_admin', 0);
  variable_set('password_policy_admin', $current_setting);
}