mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 15:21:16 +00:00
delete used pairing token
This commit is contained in:
1 parent
b32d0a5743
commit
ac86b0e938
1 file changed
+4
-1
+4
-1
@@ -111,7 +111,10 @@ def pair_device(query: PairDeviceQuery):
|
||||
return {"code": key}
|
||||
|
||||
if query.code:
|
||||
return pair_token.get(query.code, {"msg": "Invalid code"})
|
||||
token = pair_token.get(query.code, {"msg": "Invalid code"})
|
||||
pair_token = {}
|
||||
|
||||
return token
|
||||
|
||||
return {"msg": "No code provided"}, 400
|
||||
|
||||
|
||||
Reference in new issue
Block a user