[Server] Expose the audit log on the database interface

addAuditRecord existed only on Servatrice_DatabaseInterface, so 37 moderator and admin commands reached through the concrete class just to append a log row. Declare it on Server_DatabaseInterface with an empty default, mark the Servatrice implementation as an override, and switch the handler's call sites to the injected interface. No SQL moves; the argument hashes are unchanged.
This commit is contained in:
Lukas Brübach 2026-11-09 21:54:43 +01:00
parent f5b1bca480
commit 044dc11b49
4 changed files with 95 additions and 83 deletions

View file

@ -248,6 +248,15 @@ public:
{
return DeckStorageResult::Failed;
}
/** @brief Append a moderator/admin action to the server audit log. */
virtual void addAuditRecord(const QString & /* user */,
const QString & /* ipaddress */,
const QString & /* clientid */,
const QString & /* action */,
const QString & /* details */,
bool /* results */)
{
}
virtual bool removeForgotPassword(const QString & /* user */)
{
return false;