Added online status
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user