Merge pull request #116 from elisha464/master

fix logUsingCookie
This commit is contained in:
Manoël Trapier 2020-04-13 20:27:08 +01:00 committed by GitHub
commit e8a7856e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,9 +232,7 @@ export function post(config: IConfig, url: string, form: any, done: (err: any, r
function authUsingCookies(config: IConfig, done: (err: any) => void) function authUsingCookies(config: IConfig, done: (err: any) => void)
{ {
j.setCookie(request.cookie('c_userid=' + config.crUserId + '; Domain=crunchyroll.com; HttpOnly; hostOnly=false;'), j.setCookie(request.cookie('session_id=' + config.crSessionId + '; Domain=crunchyroll.com; HttpOnly; hostOnly=false;'),
CR_COOKIE_DOMAIN);
j.setCookie(request.cookie('c_userkey=' + config.crUserKey + '; Domain=crunchyroll.com; HttpOnly; hostOnly=false;'),
CR_COOKIE_DOMAIN); CR_COOKIE_DOMAIN);
checkIfUserIsAuth(config, (errCheckAuth2) => checkIfUserIsAuth(config, (errCheckAuth2) =>