From 29662ceaa62d4ced809258f96cf8799c468610d6 Mon Sep 17 00:00:00 2001 From: kiatng Date: Sun, 24 Nov 2024 09:43:43 +0800 Subject: [PATCH] Fixed incorrect OAuth nonce_used error when it should be error on incorrect consumer key. --- app/code/core/Mage/Oauth/Model/Server.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/core/Mage/Oauth/Model/Server.php b/app/code/core/Mage/Oauth/Model/Server.php index 74b38270786..d79aadac4fd 100644 --- a/app/code/core/Mage/Oauth/Model/Server.php +++ b/app/code/core/Mage/Oauth/Model/Server.php @@ -463,6 +463,7 @@ protected function _validateNonce($nonce, $timestamp) $nonceObj->load($nonce, 'nonce'); if ($nonceObj->getTimestamp() == $timestamp) { + $this->_initConsumer(); $this->_throwException('', self::ERR_NONCE_USED); } $nonceObj->setNonce($nonce)