Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: couldn't login to leetcode main site by cookie
  • Loading branch information
E011011101001 committed Mar 16, 2022
commit 4d95396b395a5da7fbd7b289e8440f2d2b54d038
2 changes: 1 addition & 1 deletion lib/plugins/leetcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down