Fix crash on no signature

This commit is contained in:
rubenwardy 2020-09-15 15:48:03 +01:00
parent 8ec4006cc7
commit e81eb9c8d5
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def claim():
return redirect(url_for("users.claim", username=username))
# Look for key
if token in sig:
if sig and token in sig:
if user is None:
user = User(username)
user.forums_username = username