Added online status

This commit is contained in:
2025-02-10 16:18:08 +01:00
parent 49c0f932ab
commit 54c40c6b85
5 changed files with 65 additions and 2 deletions
+1
View File
@@ -27,6 +27,7 @@ class UserService(BaseService):
user['color'] = await self.services.util.random_light_hex_color()
return await super().save(user)
async def register(self, email, username, password):
if await self.exists(username=username):
raise Exception("User already exists.")