mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-17 16:23:13 +00:00
Merge 623e5963dec18d140cf8e4f9c56a17c65367b90a into 35cb618ec76c58816177aeda6c93b1c8769489af
This commit is contained in:
@ -121,11 +121,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(
|
||||
{
|
||||
|
Reference in New Issue
Block a user