diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-15 15:14:44 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-15 15:14:44 +0200 |
commit | cc53f217f6122151bcae131a42da8f8887f8560d (patch) | |
tree | 2d09b9fd3758cecc00626c8aac31510dee7a37af /api/auth | |
parent | c5f71bc38772dedb033258416e0cd722f7b9e7af (diff) |
new valid and util module, more function decorators
Diffstat (limited to 'api/auth')
-rw-r--r-- | api/auth/login.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/auth/login.py b/api/auth/login.py index 94752d9..1d5a4b2 100644 --- a/api/auth/login.py +++ b/api/auth/login.py @@ -15,8 +15,7 @@ def index(): password = data.get("password") or "" # return malformed request if email or password is missing - if not email or \ - not password: + if not email or not password: return "", 400 # resolve user_id from username or email |