From 969b6b80ae62fd7cb341a733c906acf48b128967 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 2 Dec 2018 22:55:58 -0300 Subject: [PATCH] schemas: fix regression on REGISTER_WITH_INVITE regression added in https://gitlab.com/luna/litecord/commit/8f2ad0f33d4d031f7030e2ab633d1a5652784354 --- litecord/schemas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litecord/schemas.py b/litecord/schemas.py index 8518dea..3037d52 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -162,8 +162,9 @@ REGISTER = { 'password': {'type': 'string', 'minlength': 5, 'required': True} } +# only used by us, not discord, hence 'invcode' (to separate from discord) REGISTER_WITH_INVITE = {**REGISTER, **{ - 'invite': {'type': 'string', 'required': True} + 'invcode': {'type': 'string', 'required': True} }}