Arikaim CMS

AuthProviderInterface
in

Auth provider interface

Table of Contents

Methods

authenticate()  : bool
Authenticate user
getId()  : int|null
Get current auth id
getLoginAttempts()  : int|null
Get login attempts
getUser()  : array<string|int, mixed>|null
Get current auth user
isLogged()  : bool
Check if user is logged
logout()  : void
Logout

Methods

authenticate()

Authenticate user

public authenticate(array<string|int, mixed> $credentials[, ServerRequestInterface|null $request = null ]) : bool
Parameters
$credentials : array<string|int, mixed>
$request : ServerRequestInterface|null = null
Return values
bool

getLoginAttempts()

Get login attempts

public getLoginAttempts() : int|null
Return values
int|null

getUser()

Get current auth user

public getUser() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

        
On this page

Search results