mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 04:23:29 -08:00
[Server] Serve account registration from the database interface
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
80d92d1611
commit
56c8593a19
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