Remove error comparing str and int

Here the elif compares to 0, while username is a string, which causes
errors.
This commit is contained in:
Jan-Pieter Baert 2019-10-28 13:51:50 +01:00
parent ab97b3105b
commit 38923abd3d
No known key found for this signature in database
GPG key ID: B19186932178234A

View file

@ -41,7 +41,7 @@ def authorized() -> typing.Any:
# pylint: disable=R1705
if username and user:
return login_and_redirect_user(user)
elif username > 0:
elif username:
user = create_user(username)
return login_and_redirect_user(user)