mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-03 23:24:29 +00:00
Merge 623e5963dec18d140cf8e4f9c56a17c65367b90a into a84bc4f143f801286a2421a8b3c541506c5ea1f7
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