aboutsummaryrefslogtreecommitdiff
path: root/src/mangosd/RASocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mangosd/RASocket.cpp')
-rw-r--r--src/mangosd/RASocket.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mangosd/RASocket.cpp b/src/mangosd/RASocket.cpp
index f953dc3f592..cfc50d95f89 100644
--- a/src/mangosd/RASocket.cpp
+++ b/src/mangosd/RASocket.cpp
@@ -152,9 +152,9 @@ void RASocket::OnRead()
AccountMgr::normilizeString(login);
///- Escape the Login to allow quotes in names
- loginDatabase.escape_string(login);
+ LoginDatabase.escape_string(login);
- QueryResult* result = loginDatabase.PQuery("SELECT gmlevel FROM account WHERE username = '%s'",login.c_str());
+ QueryResult* result = LoginDatabase.PQuery("SELECT gmlevel FROM account WHERE username = '%s'",login.c_str());
///- If the user is not found, deny access
if(!result)
@@ -193,10 +193,10 @@ void RASocket::OnRead()
AccountMgr::normilizeString(login);
AccountMgr::normilizeString(pw);
- loginDatabase.escape_string(login);
- loginDatabase.escape_string(pw);
+ LoginDatabase.escape_string(login);
+ LoginDatabase.escape_string(pw);
- QueryResult *check = loginDatabase.PQuery(
+ 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());