Upadte.
This commit is contained in:
		
							parent
							
								
									0fa0488385
								
							
						
					
					
						commit
						d4f5a46409
					
				| @ -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") | ||||
|          | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user