From 0fe216a676c14bedce9a8e2913e02b17fa9a3221 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 26 Mar 2024 14:42:01 -0300 Subject: [PATCH] Fix password field name Signed-off-by: Vitor Mattos --- lib/Service/IdentifyMethod/SignatureMethod/Password.php | 2 +- src/views/SignPDF/_partials/Sign.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/IdentifyMethod/SignatureMethod/Password.php b/lib/Service/IdentifyMethod/SignatureMethod/Password.php index 492b444539..1b0879d254 100644 --- a/lib/Service/IdentifyMethod/SignatureMethod/Password.php +++ b/lib/Service/IdentifyMethod/SignatureMethod/Password.php @@ -44,7 +44,7 @@ public function __construct( public function validateToIdentify(): void { $pfx = $this->pkcs12Handler->getPfx($this->userSession->getUser()?->getUID()); - openssl_pkcs12_read($pfx, $cert_info, $this->getEntity()->getIdentifierValue()); + openssl_pkcs12_read($pfx, $cert_info, $this->codeSentByUser); if (empty($cert_info)) { throw new LibresignException($this->identifyService->getL10n()->t('Invalid password')); } diff --git a/src/views/SignPDF/_partials/Sign.vue b/src/views/SignPDF/_partials/Sign.vue index f62aa9c7ec..6109199c68 100644 --- a/src/views/SignPDF/_partials/Sign.vue +++ b/src/views/SignPDF/_partials/Sign.vue @@ -250,7 +250,7 @@ export default { async signWithPassword() { return this.signDocument({ method: 'password', - identifyValue: this.signPassword, + token: this.signPassword, }) }, async signWithSMSCode(token) {