mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 03:53:26 -08:00
[Server] Serve account registration from the database interface (#7841)
cmdRegisterAccount and cmdActivateAccount still called Servatrice_DatabaseInterface for username validation, user existence, the per-email account limit, ban checks, registration and activation, and cmdRegisterAccount issued the activation-email insert inline. Add addActivationEmail to Server_DatabaseInterface with a false default, implement it with the same statement and bind value, and let both commands ask the injected interface. Validation order and every response code are unchanged.
This commit is contained in:
parent
7719ff021c
commit
d05198101d
4 changed files with 21 additions and 11 deletions
|
|
@ -199,6 +199,7 @@ public:
|
|||
const QString &country,
|
||||
bool active = false) override;
|
||||
bool activateUser(const QString &userName, const QString &token) override;
|
||||
bool addActivationEmail(const QString &userName) override;
|
||||
void updateUsersClientID(const QString &userName, const QString &userClientID) override;
|
||||
void updateUsersLastLoginData(const QString &userName, const QString &clientVersion) override;
|
||||
void logMessage(const int senderId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue