mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 23:00:24 -08:00
extra server logging, server memory leak fixed, m12
This commit is contained in:
@@ -57,8 +57,10 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
|
||||
return authState;
|
||||
|
||||
if (authState == PasswordRight) {
|
||||
if (users.contains(name))
|
||||
if (users.contains(name)) {
|
||||
qDebug("Login denied: would overwrite old session");
|
||||
return WouldOverwriteOldSession;
|
||||
}
|
||||
} else if (authState == UnknownUser) {
|
||||
// Change user name so that no two users have the same names,
|
||||
// don't interfere with registered user names though.
|
||||
|
||||
Reference in New Issue
Block a user