Function __global->enforce_temporary_passwords

Definitions

sources/users.php

  • Make sure expired and temporary passwords restrict the member to the edit account or lost password page. Otherwise, redirect the member to change their 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 current member

Preview

Code (PHP)

/**
 * Make sure expired and temporary passwords restrict the member to the edit account or lost password page. Otherwise, redirect the member to change their password.
 *
 * @param  MEMBER $member_id The current member
 */

function enforce_temporary_passwords(int $member_id)