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
c90b1b6a
Commit
c90b1b6a
authored
Aug 02, 2011
by
Max-Wilhelm Bruker
Browse files
don't hash passwords in the client
parent
b2ba83ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/remoteclient.cpp
View file @
c90b1b6a
...
@@ -89,7 +89,7 @@ void RemoteClient::readData()
...
@@ -89,7 +89,7 @@ void RemoteClient::readData()
connect
(
topLevelItem
,
SIGNAL
(
protocolItemReceived
(
ProtocolItem
*
)),
this
,
SLOT
(
processProtocolItem
(
ProtocolItem
*
)));
connect
(
topLevelItem
,
SIGNAL
(
protocolItemReceived
(
ProtocolItem
*
)),
this
,
SLOT
(
processProtocolItem
(
ProtocolItem
*
)));
setStatus
(
StatusLoggingIn
);
setStatus
(
StatusLoggingIn
);
Command_Login
*
cmdLogin
=
new
Command_Login
(
userName
,
QCryptographicHash
::
hash
(
password
.
toUtf8
(),
QCryptographicHash
::
Sha1
).
toBase64
()
);
Command_Login
*
cmdLogin
=
new
Command_Login
(
userName
,
password
);
connect
(
cmdLogin
,
SIGNAL
(
finished
(
ProtocolResponse
*
)),
this
,
SLOT
(
loginResponse
(
ProtocolResponse
*
)));
connect
(
cmdLogin
,
SIGNAL
(
finished
(
ProtocolResponse
*
)),
this
,
SLOT
(
loginResponse
(
ProtocolResponse
*
)));
sendCommand
(
cmdLogin
);
sendCommand
(
cmdLogin
);
}
}
...
...
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