summary refs log tree commit diff
path: root/api/src/routes/auth/register.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 14:09:50 +0200
committerGitHub <noreply@github.com>2021-10-09 14:09:50 +0200
commitd8733131b5aeca59a7c60ceb3b57b024190b512c (patch)
treedcabe6e4296a8cf3bd2f98991c4919b4cec99379 /api/src/routes/auth/register.ts
parentMerge pull request #428 from fosscord/dev (diff)
parent:bug: fix typing (diff)
downloadserver-d8733131b5aeca59a7c60ceb3b57b024190b512c.tar.xz
Merge pull request #429 from fosscord/dev
:bug: fix typing
Diffstat (limited to 'api/src/routes/auth/register.ts')
-rw-r--r--api/src/routes/auth/register.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/src/routes/auth/register.ts b/api/src/routes/auth/register.ts

index 4b08e78e..cd1bcb72 100644 --- a/api/src/routes/auth/register.ts +++ b/api/src/routes/auth/register.ts
@@ -98,7 +98,6 @@ router.post("/", route({ body: "RegisterSchema" }), async (req: Request, res: Re } } - console.log("register", body.email, body.username, ip); // TODO: gift_code_sku_id? // TODO: check password strength @@ -168,6 +167,8 @@ router.post("/", route({ body: "RegisterSchema" }), async (req: Request, res: Re await Invite.joinGuild(user.id, body.invite); } + console.log("register", body.email, body.username, ip); + return res.json({ token: await generateToken(user.id) }); });