From c90b1b6a8e557ee296a5051ce805eab1a8350e55 Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Tue, 2 Aug 2011 21:57:30 +0200 Subject: [PATCH] don't hash passwords in the client --- cockatrice/src/remoteclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/remoteclient.cpp b/cockatrice/src/remoteclient.cpp index 8f0844870..401abb0df 100644 --- a/cockatrice/src/remoteclient.cpp +++ b/cockatrice/src/remoteclient.cpp @@ -89,7 +89,7 @@ void RemoteClient::readData() connect(topLevelItem, SIGNAL(protocolItemReceived(ProtocolItem *)), this, SLOT(processProtocolItem(ProtocolItem *))); 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 *))); sendCommand(cmdLogin); }