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
226837e9
Commit
226837e9
authored
Dec 19, 2009
by
Max-Wilhelm Bruker
Browse files
server doesn't allow an empty user name
parent
3776b240
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_protocolhandler.cpp
View file @
226837e9
...
@@ -160,7 +160,9 @@ ResponseCode Server_ProtocolHandler::cmdPing(Command_Ping * /*cmd*/)
...
@@ -160,7 +160,9 @@ ResponseCode Server_ProtocolHandler::cmdPing(Command_Ping * /*cmd*/)
ResponseCode
Server_ProtocolHandler
::
cmdLogin
(
Command_Login
*
cmd
)
ResponseCode
Server_ProtocolHandler
::
cmdLogin
(
Command_Login
*
cmd
)
{
{
QString
userName
=
cmd
->
getUsername
();
QString
userName
=
cmd
->
getUsername
().
simplified
();
if
(
userName
.
isEmpty
())
return
RespContextError
;
authState
=
server
->
checkUserPassword
(
userName
,
cmd
->
getPassword
());
authState
=
server
->
checkUserPassword
(
userName
,
cmd
->
getPassword
());
if
(
authState
==
PasswordWrong
)
if
(
authState
==
PasswordWrong
)
return
RespWrongPassword
;
return
RespWrongPassword
;
...
...
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