summaryrefslogtreecommitdiff
path: root/src/net/accountserver/accountserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/accountserver/accountserver.cpp')
-rw-r--r--src/net/accountserver/accountserver.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/accountserver/accountserver.cpp b/src/net/accountserver/accountserver.cpp
index a641ab47..db94563b 100644
--- a/src/net/accountserver/accountserver.cpp
+++ b/src/net/accountserver/accountserver.cpp
@@ -24,7 +24,6 @@
#include "accountserver.h"
#include <string>
-#include "../../utils/encryption.h"
#include "internal.h"
@@ -32,6 +31,8 @@
#include "../messageout.h"
#include "../protocol.h"
+#include "../../utils/sha256.h"
+
void Net::AccountServer::login(Net::Connection *connection, int version,
const std::string &username, const std::string &password)
{
@@ -41,9 +42,7 @@ void Net::AccountServer::login(Net::Connection *connection, int version,
msg.writeInt32(version);
msg.writeString(username);
- // The password is hashed
- msg.writeString(Encryption::GetSHA2Hash(
- std::string (username + password)));
+ msg.writeString(sha256(username + password));
Net::AccountServer::connection->send(msg);
}