This commit is contained in:
retoor 2025-04-14 23:00:05 +02:00
parent 0fa0488385
commit d4f5a46409

View File

@ -30,9 +30,10 @@ class SettingsProfileView(BaseFormView):
async def post(self):
data = await self.request.post()
user = await self.services.user.get(uid=self.session.get("uid"))
user['nick'] = data['nick']
await self.services.user.save(user)
await self.services.user_property.set(self.request["user"]["uid"],"profile", data['profile'])
await self.services.user_property.set(user["uid"],"profile", data['profile'])
return web.HTTPFound("/settings/profile.html")