diff --git a/src/fetch/ENT.js b/src/fetch/ENT.js index 70d0b33..282000e 100644 --- a/src/fetch/ENT.js +++ b/src/fetch/ENT.js @@ -123,7 +123,7 @@ function getCasName(info) { return 'somme' } else if (url.includes('seshat.ac-orleans-tours.fr:8443')) { return 'portail-famille' - } else if (url.includes('www.toutatice.fr')) { + } else if (url.includes('toutatice.fr')) { return 'toutatice' } else if (url.includes('ent.iledefrance.fr')) { return 'iledefrance' diff --git a/src/fetch/session.js b/src/fetch/session.js index a8c8411..e941041 100644 --- a/src/fetch/session.js +++ b/src/fetch/session.js @@ -25,6 +25,9 @@ async function Pronote({ url, login, password }) { // Asks instance information to Pawnote to check if it's a Toutatice instance const casName = await getCasName(info) + if (casName) { + log('debug', `Found a CAS name : ${casName}`) + } // Check if the URL uses the login=true parameter (bypasses ENT redirection) const usesLoginTrue = url.includes('login=true')