diff --git a/src/frontend/app/service/actions.service.ts b/src/frontend/app/service/actions.service.ts index e4c6d62963c9740a71061ba5dbd9afe9816f4e84..a39d84ced5b5ae723163c66105678c7f4142dd26 100644 --- a/src/frontend/app/service/actions.service.ts +++ b/src/frontend/app/service/actions.service.ts @@ -95,6 +95,7 @@ export class ActionsService { .pipe( tap((res: any) => { if (eSignature !== null) { + console.log(res); const objSignData = { hashDocument : res.dataToSign, signatureContentLength : res.signatureContentLength, diff --git a/src/frontend/app/service/signature-method/signature-method-modal.component.ts b/src/frontend/app/service/signature-method/signature-method-modal.component.ts index 387cabe128b4db59fcdd2a01b26126853bf91051..fc38fbdc0636783a61ecc7e334a2d642fa417058 100644 --- a/src/frontend/app/service/signature-method/signature-method-modal.component.ts +++ b/src/frontend/app/service/signature-method/signature-method-modal.component.ts @@ -145,14 +145,18 @@ export class SignatureMethodModalComponent implements OnInit { while (!allSignaturesComplete) { let signDocComplete: any = false; while (signDocComplete === false) { + console.log('recupération hashDocument'); res = await this.actionsService.sendDocument(this.note, this.certificate, this.signatureLength, res.tmpUniqueId); + console.log('res hashDocument', res); if (res === null) { return false; } else if (res !== false) { + console.log('signature document'); signDocComplete = await this.signDocument(res.hashDocument, res.signatureContentLength, res.signatureFieldName); if (signDocComplete) { this.signaturesService.signaturesContent.shift(); allSignaturesComplete = this.signaturesService.signaturesContent.length === 0; + res = {}; } } }