UserAuth
in package
Table of Contents
Properties
- $connection : PDO
- $query : QueryFactory
Methods
- __construct() : mixed
- UserAuth constructor.
- authenticate() : array<string|int, mixed>
- authenticate_paz() : array<string|int, mixed>
Properties
$connection
private
PDO
$connection
$query
private
QueryFactory
$query
Methods
__construct()
UserAuth constructor.
public
__construct(PDO $pdo, QueryFactory $query) : mixed
Parameters
- $pdo : PDO
-
Database Connection
- $query : QueryFactory
authenticate()
public
authenticate(string $username, string $password, string $role) : array<string|int, mixed>
Parameters
- $username : string
-
Email
- $password : string
-
Password
- $role : string
Return values
array<string|int, mixed>authenticate_paz()
public
authenticate_paz(string $username, string $password, string $role) : array<string|int, mixed>
Parameters
- $username : string
- $password : string
- $role : string