]> git.stg.codes - stg.git/blobdiff - projects/stargazer/users_impl.cpp
Removed unused m_res class member.
[stg.git] / projects / stargazer / users_impl.cpp
index d66456af5aabf74bb0f5fa49d578d5d0e88f02e1..3dd7638b9b2ecf392685ccd2f68d19b9fd17edde 100644 (file)
@@ -126,6 +126,13 @@ if (FindByNameNonLock(login, &u))
 return 0;
 }
 //-----------------------------------------------------------------------------
+bool USERS_IMPL::Exists(const std::string & login) const
+{
+STG_LOCKER lock(&mutex);
+const std::map<std::string, user_iter>::const_iterator iter(loginIndex.find(login));
+return iter != loginIndex.end();
+}
+//-----------------------------------------------------------------------------
 bool USERS_IMPL::TariffInUse(const std::string & tariffName) const
 {
 STG_LOCKER lock(&mutex);