$db
$db : \App\PDO
Database connection
A User class
Manage user's informations Authenticate and change user's username and password Create and destroy sessions
login(string $username, string $password) : boolean
Check entered username and password is valid or not Fetch username and password from database Register session if authentication is valid
string | $username | Entered username |
string | $password | Entered password |
Authentication valid or not