]> git.lizzy.rs Git - cheatdb.git/commitdiff
Fix crash on no signature
authorrubenwardy <rw@rubenwardy.com>
Tue, 15 Sep 2020 14:48:03 +0000 (15:48 +0100)
committerrubenwardy <rw@rubenwardy.com>
Tue, 15 Sep 2020 14:48:03 +0000 (15:48 +0100)
app/blueprints/users/claim.py

index b8b562e03070cc4fbe08270a0ebbbc36197d85f8..ad5aa2c72e78f87017d6c85e3f5594d98a186afc 100644 (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