From 08720f6cfef57b86594e40944e947e7a5a3c6596 Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Tue, 20 Sep 2022 15:03:36 +0200
Subject: [PATCH] fix login failed

---
 src/core/findUserPdl.js | 4 ----
 src/index.js            | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/core/findUserPdl.js b/src/core/findUserPdl.js
index de191fe..e7c46bb 100644
--- a/src/core/findUserPdl.js
+++ b/src/core/findUserPdl.js
@@ -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
   }
 }
diff --git a/src/index.js b/src/index.js
index 899af77..42678cf 100644
--- a/src/index.js
+++ b/src/index.js
@@ -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,
-- 
GitLab