jAuthDriverBase

base class for some jAuth drivers

package

jelix

Methods

__construct

__construct( $params) 

Arguments

$params

checkPassword

checkPassword(string $givenPassword, string $currentPasswordHash) : boolean|string

Arguments

$givenPassword

string

the password to verify

$currentPasswordHash

string

the hash of the real password

Response

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

hash the given password

cryptPassword(string $password,  $forceOldHash = false) : string

Arguments

$password

string

the password to hash

$forceOldHash

Response

string

the hash password

Properties

_params

_params : 

Type(s)

passwordHashMethod

passwordHashMethod : 

Type(s)

passwordHashOptions

passwordHashOptions : 

Type(s)