Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Debug print for main session ID and site auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Brycey92 committed Apr 30, 2023
1 parent e2fbd70 commit 3a5a1d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ async function main(): Promise<void> {

// Login to API and get session ID
const sessionID = config.sessionID ? config.sessionID : await authenticateAPI(config.domain, config.email, config.password);
statusMessage(MessageType.Info, `Session ID ${sessionID}`);

// Login to site and get PHPSESSID and csrf_token
const siteAuth = config.siteAuth ? config.siteAuth : await authenticateSite(config.domain, config.email, config.password);
statusMessage(MessageType.Info, `Site Auth ${siteAuth?.csrfToken}, ${siteAuth?.phpSessID}`);

var siteAuths:SiteAuth[] = [];
if (config.notifier) {
Expand Down

0 comments on commit 3a5a1d7

Please sign in to comment.