chore: update py files
This commit is contained in:
parent
a99e81aae0
commit
8b1ce1da67
@ -34,6 +34,14 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## Version 1.35.0 - 2026-01-31
|
||||
|
||||
update py files
|
||||
|
||||
**Changes:** 1 files, 2 lines
|
||||
**Languages:** Python (2 lines)
|
||||
|
||||
## Version 1.34.0 - 2026-01-31
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "Snek"
|
||||
version = "1.34.0"
|
||||
version = "1.35.0"
|
||||
readme = "README.md"
|
||||
#license = { file = "LICENSE", content-type="text/markdown" }
|
||||
description = "Snek Chat Application by Molodetz"
|
||||
|
||||
@ -102,6 +102,8 @@ class UserService(BaseService):
|
||||
model.email.value = email
|
||||
model.username.value = username
|
||||
model.password.value = await security.hash(password)
|
||||
if not await self.count():
|
||||
model["is_admin"] = True
|
||||
if await self.save(model):
|
||||
if model:
|
||||
channel = await self.services.channel.ensure_public_channel(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user