Skip to content

Commit

Permalink
Merge pull request #2599 from LibreSign/bugfix/password-field-name
Browse files Browse the repository at this point in the history
Fix password field name
  • Loading branch information
vitormattos authored Mar 26, 2024
2 parents 362b428 + 0fe216a commit 66357ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Service/IdentifyMethod/SignatureMethod/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/SignPDF/_partials/Sign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export default {
async signWithPassword() {
return this.signDocument({
method: 'password',
identifyValue: this.signPassword,
token: this.signPassword,
})
},
async signWithSMSCode(token) {
Expand Down

0 comments on commit 66357ee

Please sign in to comment.