Skip to content

Commit 4d95396

Browse files
committed
fix: couldn't login to leetcode main site by cookie
1 parent c5f6b89 commit 4d95396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/leetcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ plugin.login = function(user, cb) {
533533
});
534534
};
535535

536-
function parseCookie(cookie, body, cb) {
536+
function parseCookie(cookie, cb) {
537537
const SessionPattern = /LEETCODE_SESSION=(.+?)(;|$)/;
538538
const csrfPattern = /csrftoken=(.+?)(;|$)/;
539539
const reCsrfResult = csrfPattern.exec(cookie);

0 commit comments

Comments
 (0)