Function __global->bump_password_change_date
Definitions
sources/password_rules.php
- Store (a hash of) and validate a new password.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | The member this is for |
| $password | string | No | No | required parameter | N/A | N/A | New password |
| $check_correctness | boolean | No | No | True | N/A | N/A | Whether to check details for correctness |
| $time | ?TIME | No | No | Null | N/A | N/A | The time this is logged to be happening at (null: now) |
Preview
Code (PHP)
/**
* Store (a hash of) and validate a new password.
*
* @param MEMBER $member_id The member this is for
* @param string $password New password
* @param boolean $check_correctness Whether to check details for correctness
* @param ?TIME $time The time this is logged to be happening at (null: now)
*/
function bump_password_change_date(int $member_id, string $password, bool $check_correctness = true, ?int $time = null)
* Store (a hash of) and validate a new password.
*
* @param MEMBER $member_id The member this is for
* @param string $password New password
* @param boolean $check_correctness Whether to check details for correctness
* @param ?TIME $time The time this is logged to be happening at (null: now)
*/
function bump_password_change_date(int $member_id, string $password, bool $check_correctness = true, ?int $time = null)

