Closed LabiciIvan closed 1 month ago
Will need an additional method getLastID()
which will return the last inserted ID.
This last inserted ID will be stored by the register()
method if registration succeeds into a private int variable called $lastID
.
Description:
Create an
Authentication::class
which will have next capabilities:Class Methods:
register()
:userExists()
:getUserID()
method;getUserID()
:userExists()
method;isLoggedIn()
:login()
:logout()
: