mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Stuffy stuff
This commit is contained in:
parent
5cce6cfdae
commit
15996e79f7
2 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue