You are here

function password_policy_update_password_history in Password Policy 7.2

Adds the history record for this user/created time.

Parameters

object $history: History record.

2 calls to password_policy_update_password_history()
PasswordPolicyExpire::init in plugins/item/expire.inc
Checks on init if the user password has expired.
_password_policy_store_password in ./password_policy.module
Stores user password hash.

File

./password_policy.module, line 427
Enforces password policies.

Code

function password_policy_update_password_history($history) {
  db_insert('password_policy_history')
    ->fields(array(
    'uid' => $history->uid,
    'created' => $history->created,
    'pass' => $history->pass,
    'is_generated' => $history->is_generated ? 1 : 0,
  ))
    ->execute();
}