mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
delete used pairing token
This commit is contained in:
+4
-1
@@ -111,7 +111,10 @@ def pair_device(query: PairDeviceQuery):
|
|||||||
return {"code": key}
|
return {"code": key}
|
||||||
|
|
||||||
if query.code:
|
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
|
return {"msg": "No code provided"}, 400
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user