Fix crash on no signature
This commit is contained in:
parent
8ec4006cc7
commit
e81eb9c8d5
|
@ -87,7 +87,7 @@ def claim():
|
||||||
return redirect(url_for("users.claim", username=username))
|
return redirect(url_for("users.claim", username=username))
|
||||||
|
|
||||||
# Look for key
|
# Look for key
|
||||||
if token in sig:
|
if sig and token in sig:
|
||||||
if user is None:
|
if user is None:
|
||||||
user = User(username)
|
user = User(username)
|
||||||
user.forums_username = username
|
user.forums_username = username
|
||||||
|
|
Loading…
Reference in New Issue