1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Stuffy stuff

This commit is contained in:
Steffo 2020-06-22 18:08:10 +02:00
parent 5cce6cfdae
commit 15996e79f7
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
2 changed files with 4 additions and 1 deletions

View file

@ -42,9 +42,9 @@ class ApiUserCreateStar(rca.ApiStar):
email=email,
avatar_url=avatar_url
)
data.session.add(user)
user.set_password(password)
user.add_alias(self.alchemy, username)
data.session.add(user)
await data.session_commit()
return user.json()

View file

@ -7,6 +7,9 @@ from starlette.responses import Response, HTMLResponse
from royalnet.version import semantic
backtick = "\u0060"
class DocsStar(PageStar):
path = "/docs"