]> git.stg.codes - stg.git/blobdiff - projects/stargazer/users_impl.cpp
Merge branch 'log-unauth-reasons'
[stg.git] / projects / stargazer / users_impl.cpp
index 5b88e685904a1d2ff0f509ea729f6491a5472247..4c4d4ce03e4c0dcb9f9c360ea0676f492f49a357 100644 (file)
@@ -314,7 +314,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__);
@@ -326,7 +328,7 @@ if (FindByNameNonLock(login, &iter))
 
 uint32_t ip = iter->GetCurrIP();
 
-iter->Unauthorize(auth);
+iter->Unauthorize(auth, reason);
 
 if (!iter->GetAuthorized())
     DelFromIPIdx(ip);