summary refs log tree commit diff
path: root/api
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
commit45b9800b5d0c8b0a2a75309502ea52ab6b0e83dc (patch)
tree6968d6bdcb65a019426f1ec66304a01b6e223eeb /api
parent:sparkles: add ``right`` option to route() (diff)
downloadserver-45b9800b5d0c8b0a2a75309502ea52ab6b0e83dc.tar.xz
:bug: fix registration
Diffstat (limited to 'api')
-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