mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
extra server logging, server memory leak fixed, m12
This commit is contained in:
parent
380a8b2d41
commit
c8813bb2aa
6 changed files with 27 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue