Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
dda78661
Commit
dda78661
authored
Mar 10, 2012
by
Max-Wilhelm Bruker
Browse files
added missing table unlock command
parent
decf1c04
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server.cpp
View file @
dda78661
...
@@ -68,6 +68,7 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
...
@@ -68,6 +68,7 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
if
(
authState
==
PasswordRight
)
{
if
(
authState
==
PasswordRight
)
{
if
(
users
.
contains
(
name
)
||
userSessionExists
(
name
))
{
if
(
users
.
contains
(
name
)
||
userSessionExists
(
name
))
{
qDebug
(
"Login denied: would overwrite old session"
);
qDebug
(
"Login denied: would overwrite old session"
);
unlockSessionTables
();
return
WouldOverwriteOldSession
;
return
WouldOverwriteOldSession
;
}
}
}
else
if
(
authState
==
UnknownUser
)
{
}
else
if
(
authState
==
UnknownUser
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment