Skip to content

Commit

Permalink
Merge branch 'release-2.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
LucsT committed Sep 30, 2024
2 parents bea4adf + 1ee9326 commit 2b48bf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch/ENT.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions src/fetch/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2b48bf8

Please sign in to comment.