From de681188e5513359f3036138b517e42a3b78fb92 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 9 Oct 2021 14:00:28 +0200 Subject: :bug: fix typing --- api/src/routes/auth/register.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api/src/routes/auth') 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) }); }); -- cgit 1.5.1