1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +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, email=email,
avatar_url=avatar_url avatar_url=avatar_url
) )
data.session.add(user)
user.set_password(password) user.set_password(password)
user.add_alias(self.alchemy, username) user.add_alias(self.alchemy, username)
data.session.add(user)
await data.session_commit() await data.session_commit()
return user.json() return user.json()

View file

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