AccountMgr singleton converted to namespace with free functions as it has no internal state

This commit is contained in:
Spp- committed 2011-09-08 10:49:58 +02:00
1 parent e67a33eaaa
commit eddcb8ffbf
13 files changed
+50 -55

No files matched your search

@@ -213,7 +213,7 @@ int RASocket::check_password(const std::string& user, const std::string& pass)
AccountMgr::normalizeString(safe_pass);
LoginDatabase.EscapeString(safe_pass);
std::string hash = sAccountMgr->CalculateShaPassHash(safe_user, safe_pass);
std::string hash = AccountMgr::CalculateShaPassHash(safe_user, safe_pass);
QueryResult check = LoginDatabase.PQuery(
"SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash = '%s'",