jAuthPassword
in package
Tags
Table of Contents
- STRENGTH_BAD_PASS = -1
- STRENGTH_GOOD = 3
- STRENGTH_NONE = 0
- STRENGTH_POOR = 1
- STRENGTH_STRONG = 4
- STRENGTH_WEAK = 2
- checkPasswordStrength() : mixed
- getRandomPassword() : string
- generate a password with random letters, numbers and special characters.
Constants
STRENGTH_BAD_PASS
public
mixed
STRENGTH_BAD_PASS
= -1
Tags
STRENGTH_GOOD
public
mixed
STRENGTH_GOOD
= 3
Tags
STRENGTH_NONE
public
mixed
STRENGTH_NONE
= 0
Tags
STRENGTH_POOR
public
mixed
STRENGTH_POOR
= 1
Tags
STRENGTH_STRONG
public
mixed
STRENGTH_STRONG
= 4
Tags
STRENGTH_WEAK
public
mixed
STRENGTH_WEAK
= 2
Tags
Methods
checkPasswordStrength()
public
static checkPasswordStrength(mixed $password[, mixed $minLength = 12 ]) : mixed
Parameters
- $password : mixed
- $minLength : mixed = 12
Tags
Return values
mixed —getRandomPassword()
generate a password with random letters, numbers and special characters.
public
static getRandomPassword([int $length = 12 ][, bool $withoutSpecialChars = false ]) : string
Parameters
- $length : int = 12
-
the length of the generated password
- $withoutSpecialChars : bool = false
-
(optional, default false) the generated password may be use this characters : !@#$%^&*?_,~
Tags
Return values
string —the generated password