Skip to content

Commit

Permalink
Update the HMAC Key field to be empty instead of null (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 committed Jun 26, 2023
1 parent 53a566d commit e432186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<div class="input-fields">
<input type="password" class="form-control" name="Adyen_Hmac_Key" id="hmacKey"
aria-describedby="hmacKeyHelp" placeholder=""
value="${AdyenConfigs.getAdyenHmacKey()}">
value="${AdyenConfigs.getAdyenHmacKey() || ''}">
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const AdyenConfigs = require('*/cartridge/scripts/util/adyenConfigs');
*/

function handleHmacVerification(hmacKey, req) {
if (!hmacKey) {
return false;
if (hmacKey) {
return checkAuth.validateHmacSignature(req);
}
return checkAuth.validateHmacSignature(req);
return true;
}

function notify(req, res, next) {
Expand Down

0 comments on commit e432186

Please sign in to comment.