mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-22 09:35:08 -07:00
[Servatrice] Detect MySQL strict mode on startup and exit early (#7251)
* [Servatrice] Detect MySQL strict mode on startup and exit early * Update servatrice/src/servatrice_database_interface.cpp Co-authored-by: tooomm <tooomm@users.noreply.github.com> * [Servatrice] Treat failed strict-mode check as boot error --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> Co-authored-by: tooomm <tooomm@users.noreply.github.com>
This commit is contained in:
parent
1c93309952
commit
e11c915a0c
2 changed files with 49 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ private:
|
|||
bool checkUserIsIpBanned(const QString &ipAddress, QString &banReason, int &banSecondsRemaining);
|
||||
/** Must be called after checkSql and server is known to be in auth mode. */
|
||||
bool checkUserIsNameBanned(QString const &userName, QString &banReason, int &banSecondsRemaining);
|
||||
bool isStrictModeEnabled(bool &ok) const;
|
||||
|
||||
protected:
|
||||
AuthenticationResult checkUserPassword(Server_ProtocolHandler *handler,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue