Jelix 1.8.13

jAuthDriverBase
in package

base class for some jAuth drivers.

Tags

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
Tags
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

Tags
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
Tags
Return values
string

the hash password

Search results