diff --git a/main.py b/main.py index ad88a8d..3e09125 100644 --- a/main.py +++ b/main.py @@ -82,7 +82,7 @@ def register_token( cursor = db.cursor() cursor.execute( "SELECT * FROM device_tokens WHERE user_id=%s AND hashed_token=%s", - (secure_token,hashed_token)) + (user_id,hashed_token)) existing = cursor.fetchone() if existing: