phpDocumentor

AuthService
in package
implements AuthServiceInterface

Class AuthService

Tags
category

System

Interfaces, Classes and Traits

AuthServiceInterface
Interface AuthServiceInterface

Table of Contents

$customerReadService  : CustomerReadService
$settings  : AuthSettingsInterface
__construct()  : mixed
Authentication constructor.
authUser()  : bool
Authenticates a user by its email and password stored in the given AuthCredentialsInterface object.
getHash()  : string
Returns a hash of the given password.
getRehashedPassword()  : string
Returns a new hash of the given password.
verify()  : bool
Verifies a password by its hash.

Properties

Methods

getHash()

Returns a hash of the given password.

public getHash(StringType $password) : string
Parameters
$password : StringType
Return values
string

Password Hash.

getRehashedPassword()

Returns a new hash of the given password.

public getRehashedPassword(StringType $password, NonEmptyStringType $hash) : string

It will only differ from the given hash if the given hash is valid but does match to the current auth strategy.

Parameters
$password : StringType
$hash : NonEmptyStringType
Return values
string

Rehashed password.

Search results