aboutsummaryrefslogtreecommitdiff
path: root/api/auth
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-16 16:56:23 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-16 16:56:23 +0200
commitaa2c999702dadba2afbcf2be9f597f890aafcc87 (patch)
tree72828d9d478b2f839f78e65d143bf4363f4ed8af /api/auth
parentb9e1d1537bb9b8b178d9d6cb7aca06d8cfc068a4 (diff)
fix api/game/accept
Diffstat (limited to 'api/auth')
-rw-r--r--api/auth/signup.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/api/auth/signup.py b/api/auth/signup.py
index 5e74076..98c07a7 100644
--- a/api/auth/signup.py
+++ b/api/auth/signup.py
@@ -16,7 +16,7 @@ def validate_username(username):
def validate_email(email):
#TODO: use node_modules/email-validator/index.js
return len(email) > 1 and \
- "@" in email
+ "@" in email
# checks if the password is safe (regex explanation in pages/register.tsx)
@@ -40,14 +40,14 @@ def index():
# return 400 (malformed request) if any of the required data is missing
if not username or \
- not email or \
- not password:
+ not email or \
+ not password:
return "", 400
# return 403 (forbidden) if any of the required data is invalid
if not validate_username(username) or \
- not validate_email(email) or \
- not validate_password(password):
+ not validate_email(email) or \
+ not validate_password(password):
return {"error": "form_data_invalid"}, 403
# check if username is taken