inline
std::string USER_PROPERTIES::GetPropertyValue(const std::string & name) const
{
-std::map<std::string, USER_PROPERTY_BASE*>::const_iterator it = properties.find(name);
+std::map<std::string, USER_PROPERTY_BASE*>::const_iterator it = properties.find(ToLower(name));
if (it == properties.end())
return "";
return it->second->ToString();
inline
bool USER_PROPERTIES::Exists(const std::string & name) const
{
-return properties.find(name) != properties.end();
+return properties.find(ToLower(name)) != properties.end();
}
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
//-----------------------------------------------------------------------------
std::string USER_IMPL::GetParamValue(const std::string & name) const
{
- if (name == "id")
+ if (ToLower(name) == "id")
{
std::ostringstream stream;
stream << id;
return stream.str();
}
- if (name == "login") return login;
- if (name == "currIP") return currIP.ToString();
- if (name == "enabledDirs") return GetEnabledDirs();
+ if (ToLower(name) == "login") return login;
+ if (ToLower(name) == "currip") return currIP.ToString();
+ if (ToLower(name) == "enableddirs") return GetEnabledDirs();
if (property.Exists(name))
return property.GetPropertyValue(name);
else