mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
Merge 623e5963dec18d140cf8e4f9c56a17c65367b90a into f89a5cee9abd58ebb3dca17e9c0b5d2ff3889b45
This commit is contained in:
@ -118,11 +118,6 @@ class RobotTokenSHA256AuthenticationMiddleWare:
|
||||
).replace("Private ", "")
|
||||
nostr_pubkey = request.META.get("NOSTR_PUBKEY", "").replace("Nostr ", "")
|
||||
|
||||
# Some legacy (pre-federation) clients will still send keys as cookies
|
||||
if public_key == "" or encrypted_private_key == "":
|
||||
public_key = request.COOKIES.get("public_key")
|
||||
encrypted_private_key = request.COOKIES.get("encrypted_private_key", "")
|
||||
|
||||
if not public_key or not encrypted_private_key or not nostr_pubkey:
|
||||
return JsonResponse(new_error(7001), status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user