//-----------------------------------------------------------------------------
std::string USER_IMPL::GetParamValue(const std::string & name) const
{
- if (name == "id")
+ std::string lowerName = ToLower(name);
+ if (lowerName == "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 (property.Exists(name))
- return property.GetPropertyValue(name);
+ if (lowerName == "login") return login;
+ if (lowerName == "currip") return currIP.ToString();
+ if (lowerName == "enableddirs") return GetEnabledDirs();
+ if (property.Exists(lowerName))
+ return property.GetPropertyValue(lowerName);
else
{
WriteServLog("User’s parameter '%s' does not exist.", name.c_str());