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) {