]> git.stg.codes - stg.git/blobdiff - projects/stargazer/users_impl.cpp
Implemented IA protocol errors logging.
[stg.git] / projects / stargazer / users_impl.cpp
index c4f63c6476763548a8f29da093d4ae9aea5f8797..97b4bbbce1eed913ef2c50e6bbe012c48e24215b 100644 (file)
@@ -298,7 +298,9 @@ AddToIPIdx(iter);
 return true;
 }
 //-----------------------------------------------------------------------------
-bool USERS_IMPL::Unauthorize(const std::string & login, const AUTH * auth)
+bool USERS_IMPL::Unauthorize(const std::string & login,
+                             const AUTH * auth,
+                             const std::string & reason)
 {
 user_iter iter;
 STG_LOCKER lock(&mutex, __FILE__, __LINE__);
@@ -310,7 +312,7 @@ if (FindByNameNonLock(login, &iter))
 
 uint32_t ip = iter->GetCurrIP();
 
-iter->Unauthorize(auth);
+iter->Unauthorize(auth, reason);
 
 if (!iter->GetAuthorized())
     DelFromIPIdx(ip);