Merge 623e5963dec18d140cf8e4f9c56a17c65367b90a into a84bc4f143f801286a2421a8b3c541506c5ea1f7

This commit is contained in:
jerry
2025-08-23 07:04:27 -04:00
committed by GitHub

View File

@ -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)