aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-26 16:59:11 +0200
committerQAston <none@none>2009-07-26 16:59:11 +0200
commit5c6d407cb5d3017591067998124b0a52c4ef8fa8 (patch)
tree650b07de425b9e198ac5899f1ff606487f78479e
parent3409ddf1a86f31ebc4fca3fa5ca4fb606fed14eb (diff)
*Fix Remote Access login - by peaceman.
--HG-- branch : trunk
-rw-r--r--src/trinitycore/RASocket.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/trinitycore/RASocket.cpp b/src/trinitycore/RASocket.cpp
index 50a1af87256..b15f4e447d6 100644
--- a/src/trinitycore/RASocket.cpp
+++ b/src/trinitycore/RASocket.cpp
@@ -25,7 +25,6 @@
#include "Common.h"
#include "Config/ConfigEnv.h"
#include "Database/DatabaseEnv.h"
-
#include "AccountMgr.h"
#include "Log.h"
#include "RASocket.h"
@@ -198,8 +197,8 @@ void RASocket::OnRead()
LoginDatabase.escape_string(pw);
QueryResult *check = LoginDatabase.PQuery(
- "SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))",
- login.c_str(), pw.c_str());
+ "SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT('%s',':','%s'))",
+ login.c_str(), login.c_str(), pw.c_str());
if(check)
{