Framework update

This commit is contained in:
stephb9959
2021-12-28 11:30:32 -08:00
parent 1cf9894f7d
commit 73096153b4

View File

@@ -34,14 +34,11 @@ namespace OpenWifi {
return NotFound();
}
// if there is an avatar, just remove it...
StorageService()->AvatarDB().DeleteAvatar(UserInfo_.userinfo.email,Id);
std::stringstream SS;
AvatarPartHandler partHandler(Id, Logger_, SS);
Poco::Net::HTMLForm form(*Request, Request->stream(), partHandler);
Poco::JSON::Object Answer;
if (!partHandler.Name().empty() && partHandler.Length()< MicroService::instance().ConfigGetInt("openwifi.avatar.maxsize",2000000)) {
Answer.set(RESTAPI::Protocol::AVATARID, Id);
Answer.set(RESTAPI::Protocol::ERRORCODE, 0);