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

feat: throw login fail if pdl doesn't match

parent 17f8a90c
No related branches found
No related tags found
2 merge requests!12Feat/donnes tech debut contrat,!10Feat/rechercher point
Pipeline #39687 failed
......@@ -137,7 +137,7 @@ async function verifyUserIdentity(
if (fields.pointId != pdl) {
log('error', 'PointId does not match')
return false
throw errors.LOGIN_FAILED
}
return true
}
......@@ -502,7 +502,6 @@ async function findUserPdl(
log('error', 'rechercherPointResponse')
log('error', err)
throw errors.LOGIN_FAILED
//TODO: handling code error SGT4F6 and SGT432 into USER_ACTIon_NEEDED
})
const parsedReply = await xml2js.parseStringPromise(response.body, {
......
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