From bee75f416868a1041e8853a6a5a7e818f0300acb Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 6 Mar 2010 18:24:45 +0000 Subject: Add query debug output to m_sqlauth git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12605 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sqlauth.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_sqlauth.cpp b/src/modules/m_sqlauth.cpp index df2dd0190..1494a5634 100644 --- a/src/modules/m_sqlauth.cpp +++ b/src/modules/m_sqlauth.cpp @@ -30,7 +30,10 @@ class AuthQuery : public SQLQuery LocalIntExt& pendingExt; bool verbose; AuthQuery(Module* me, const std::string& db, const std::string& q, const std::string& u, LocalIntExt& e, bool v) - : SQLQuery(me, db, q), uid(u), pendingExt(e), verbose(v) {} + : SQLQuery(me, db, q), uid(u), pendingExt(e), verbose(v) + { + ServerInstance->Logs->Log("m_sqlauth",DEBUG, "SQLAUTH: db=%s query=\"%s\"", db.c_str(), q.c_str()); + } void OnResult(SQLResult& res) { @@ -127,7 +130,7 @@ class ModuleSQLAuth : public Module HashProvider* sha256 = ServerInstance->Modules->FindDataService("hash/sha256"); if (sha256) - userinfo["$sha256pass"] = sha256->hexsum(user->password); + userinfo["sha256pass"] = sha256->hexsum(user->password); SQL->submit(new AuthQuery(this, databaseid, SQL->FormatQuery(freeformquery, userinfo), user->uuid, pendingExt, verbose)); -- cgit v1.2.3