mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-01 11:17:51 +00:00
Fixing typo in UserInfo struct
This commit is contained in:
@@ -10,7 +10,7 @@ namespace OpenWifi {
|
||||
void RESTAPI_preferences::DoGet() {
|
||||
SecurityObjects::Preferences P;
|
||||
Poco::JSON::Object Answer;
|
||||
StorageService()->PreferencesDB().GetPreferences(UserInfo_.userinfo.Id, P);
|
||||
StorageService()->PreferencesDB().GetPreferences(UserInfo_.userinfo.id, P);
|
||||
P.to_json(Answer);
|
||||
ReturnObject(Answer);
|
||||
}
|
||||
@@ -24,7 +24,7 @@ namespace OpenWifi {
|
||||
return BadRequest(RESTAPI::Errors::InvalidJSONDocument);
|
||||
}
|
||||
|
||||
P.id = UserInfo_.userinfo.Id;
|
||||
P.id = UserInfo_.userinfo.id;
|
||||
P.modified = std::time(nullptr);
|
||||
StorageService()->PreferencesDB().SetPreferences(P);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user