mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 14:50:26 -08:00
Added server side setting to allow the requirement of a client id from clients.
This commit is contained in:
@@ -172,6 +172,8 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
|
||||
|
||||
if (clientid.isEmpty()){
|
||||
// client id is empty, either out dated client or client has been modified
|
||||
if (getClientIdRequired())
|
||||
return ClientIdRequired;
|
||||
}
|
||||
else {
|
||||
// update users database table with client id
|
||||
|
||||
Reference in New Issue
Block a user