From 4d95396b395a5da7fbd7b289e8440f2d2b54d038 Mon Sep 17 00:00:00 2001
From: Eol <eol@eolstudy.com>
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);