Function __global->get_secure_random_password

Definitions

sources/crypt.php

  • Generate a cryptographically-secure pseudo-random password using uppercase letters, lowercase letters, numbers, and symbols.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$strength ?integer Null N/A N/A The minimum password strength we want; the generated password could be stronger but will never be weaker (null: use configured strength)
$username SHORT_TEXT Blank (empty string) N/A N/A The username of the member for which we are generating a password (blank: do not check username in password strength check)
$email_address SHORT_TEXT Blank (empty string) N/A N/A The e-mail address of the member (blank: do not check e-mail address in password strength check)
$dob ?TIME Null N/A N/A The date of birth of the member (null: do not check dob in password strength check)

Return

  • The random password
  • Type: string
  • Set: N/A
  • Range: N/A