Skip to content
Snippets Groups Projects
Commit 08720f6c authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

fix login failed

parent d8820eb1
No related branches found
No related tags found
1 merge request!16Feat/us843 wrong error message issue 276
Pipeline #42253 passed
......@@ -50,10 +50,6 @@ async function findUserPdl(
return parseUserPdl(parsedReply)
} catch (error) {
log('error', 'Error while parsing user PDL: ' + error)
log(
'error',
`Enedis issue ${parsedReply.Envelope.Body.Fault.detail.erreur.resultat.$.code}: ${parsedReply.Envelope.Body.Fault.faultstring}`
)
throw errors.LOGIN_FAILED
}
}
......
......@@ -168,7 +168,7 @@ async function start(fields, cozyParameters) {
consentId: consent.ID,
})
} else {
// AlternateStart
log('info', 'Alternate start...')
const accountData = await getAccount(ACCOUNT_ID)
const userConsent = await getBoConsent(
boBaseUrl,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment