TradeBench 1.0.0
Algorithmic Trading Backtesting Platform
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
App\Controllers\AuthController Class Reference

Controller responsible for user registration, authentication, and token generation. More...

Public Member Functions

 __construct ()
 
 register ()
 Processes a new user registration request.
 
 login ()
 Processes user login and issues JWT tokens.
 
 logout ()
 Invalidates the current session.
 

Private Attributes

PDO $db
 

Detailed Description

Controller responsible for user registration, authentication, and token generation.

Constructor & Destructor Documentation

◆ __construct()

App\Controllers\AuthController::__construct ( )

Member Function Documentation

◆ login()

App\Controllers\AuthController::login ( )

Processes user login and issues JWT tokens.

◆ logout()

App\Controllers\AuthController::logout ( )

Invalidates the current session.

◆ register()

App\Controllers\AuthController::register ( )

Processes a new user registration request.

Field Documentation

◆ $db

PDO App\Controllers\AuthController::$db
private

The documentation for this class was generated from the following file: