Documentation

UserAdapter
in package
implements AdapterInterface

Table of Contents

Interfaces

AdapterInterface

Properties

$bcrypt  : Bcrypt
$login  : string
$loginAttemptService  : LoginAttempt
$mapper  : User
$password  : string
$pwnedPasswordsService  : PwnedPasswords
$translator  : Translator

Methods

__construct()  : mixed
authenticate()  : Result
Try to authenticate.
getMapper()  : User
Get the mapper.
setCredentials()  : void
Sets the credentials used to authenticate.
verifyPassword()  : bool
Verify a password.

Properties

$translator read-only

private Translator $translator

Methods

authenticate()

Try to authenticate.

public authenticate() : Result
Return values
Result

setCredentials()

Sets the credentials used to authenticate.

public setCredentials(string $login, string $password) : void
Parameters
$login : string
$password : string

verifyPassword()

Verify a password.

public verifyPassword(string $password, string $hash) : bool
Parameters
$password : string
$hash : string
Return values
bool

        
On this page

Search results