From 4d95396b395a5da7fbd7b289e8440f2d2b54d038 Mon Sep 17 00:00:00 2001 From: Eol Date: Wed, 16 Mar 2022 19:55:30 +0800 Subject: [PATCH] fix: couldn't login to leetcode main site by cookie --- lib/plugins/leetcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/leetcode.js b/lib/plugins/leetcode.js index 9e81014..b33e2e1 100644 --- a/lib/plugins/leetcode.js +++ b/lib/plugins/leetcode.js @@ -533,7 +533,7 @@ plugin.login = function(user, cb) { }); }; -function parseCookie(cookie, body, cb) { +function parseCookie(cookie, cb) { const SessionPattern = /LEETCODE_SESSION=(.+?)(;|$)/; const csrfPattern = /csrftoken=(.+?)(;|$)/; const reCsrfResult = csrfPattern.exec(cookie); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy