![]() |
Banking_System_Server
1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
|
The UpdateEmailRequest class handles email update requests for users. More...
#include <UpdateEmailRequest.h>
Public Member Functions | |
UpdateEmailRequest () | |
Constructor for the UpdateEmailRequest class. More... | |
QJsonObject | execute (const QJsonObject &jsonObj, QMutex &m) override |
Executes the email update request. More... | |
![]() | |
virtual | ~Request () |
Virtual destructor for the Request class. More... | |
Additional Inherited Members | |
![]() | |
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 UpdateEmailRequest class handles email update requests for users.
This class processes email update requests, validates user credentials, checks for existing emails, and updates the email in the database.
|
inline |
Constructor for the UpdateEmailRequest class.
Initializes the DatabaseManager instance for handling database operations.
|
inlineoverridevirtual |
Executes the email update request.
This method processes the JSON request to update the user's email. It validates user credentials, checks if the new email is already in use, and updates the email in the database.
jsonObj | The JSON object containing the request data. |
m | The mutex to lock during the execution. |
Implements Request.