LabiciIvan / php-api-nutritional-project

A PHP API nutritional project
0 stars 0 forks source link

Authentication class #32

Closed LabiciIvan closed 1 month ago

LabiciIvan commented 1 month ago

Description:

Create an Authentication::class which will have next capabilities:

Class Methods:

register():

userExists():

getUserID():

isLoggedIn():

login():

logout():

LabiciIvan commented 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.