Jelix 1.7.18

jAuthDriverBase
in package

base class for some jAuth drivers.

Table of Contents

$_params  : mixed
$passwordHashMethod  : mixed
$passwordHashOptions  : mixed
__construct()  : mixed
checkPassword()  : bool|string
cryptPassword()  : string
hash the given password.

Properties

Methods

__construct()

public __construct(mixed $params) : mixed
Parameters
$params : mixed
Return values
mixed

checkPassword()

public checkPassword(string $givenPassword, string $currentPasswordHash) : bool|string
Parameters
$givenPassword : string

the password to verify

$currentPasswordHash : string

the hash of the real password

Return values
bool|string

false if password does not correspond. True if it is ok. A string containing a new hash if it is ok and need to store a new hash

cryptPassword()

hash the given password.

public cryptPassword(string $password[, mixed $forceOldHash = false ]) : string
Parameters
$password : string

the password to hash

$forceOldHash : mixed = false
Return values
string

the hash password

Search results