mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-07 08:07:27 +08:00
frontend: fix account and owner creation (fixes #108)
This commit is contained in:
@@ -127,7 +127,7 @@ class Data:
|
||||
)
|
||||
hash = bcrypt.hashpw(pw.encode(), bcrypt.gensalt())
|
||||
|
||||
user_id = await self.user.create_user("sysowner", email, hash.decode(), 255)
|
||||
user_id = await self.user.create_user(username="sysowner", email=email, password=hash.decode(), permission=255)
|
||||
if user_id is None:
|
||||
self.logger.error(f"Failed to create owner with email {email}")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user