summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-03 01:59:38 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-03 01:59:38 +0200
commit4a3cd749422840afc0b80751de9efa53874daf87 (patch)
tree7f7617d7e8200d587b4c643c40b298a253abe895
parent:sparkles: add ``right`` option to route() (diff)
downloadserver-4a3cd749422840afc0b80751de9efa53874daf87.tar.xz
:bug: fix registration
-rw-r--r--api/src/routes/auth/register.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/routes/auth/register.ts b/api/src/routes/auth/register.ts
index 75fa68c3..1344c994 100644
--- a/api/src/routes/auth/register.ts
+++ b/api/src/routes/auth/register.ts
@@ -211,6 +211,7 @@ router.post("/", route({ body: "RegisterSchema" }), async (req: Request, res: Re
 		disabled: false,
 		deleted: false,
 		email: email,
+		rights: "0",
 		nsfw_allowed: true, // TODO: depending on age
 		public_flags: "0",
 		flags: "0", // TODO: generate