![]() |
Banking_System_Server
1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
|
The LoginRequest class handles user login requests. More...
#include <LoginRequest.h>


Public Member Functions | |
| LoginRequest () | |
| Constructor for the LoginRequest class. More... | |
| QJsonObject | execute (const QJsonObject &jsonObj, QMutex &m) override |
| Executes the login request. More... | |
Public Member Functions inherited from Request | |
| virtual | ~Request () |
| Virtual destructor for the Request class. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Request | |
| bool | isDBConnectionValid (DB::DatabaseManager *dbManager) |
| Checks if the database connection is valid. More... | |
| QJsonObject | CreateDBConnectionError (QJsonObject &response, QJsonObject &dataObj) |
| Creates a JSON response indicating a database connection error. More... | |
| QJsonObject | CreateErrorResponse (QJsonObject &response, QJsonObject &dataObj, QString message) |
| Creates a generic error JSON response. More... | |
The LoginRequest class handles user login requests.
This class processes login requests, validates user credentials, and returns the login status.
|
inline |
Constructor for the LoginRequest class.
Initializes the DatabaseManager instance for handling database operations.
|
inlineoverridevirtual |
Executes the login request.
This method processes the JSON request to validate user credentials. It checks the database for the provided email and password, and returns the login status.
| jsonObj | The JSON object containing the request data. |
| m | The mutex to lock during the execution. |
Implements Request.
