From f78aef1ace0a81392dc11387db7e11761c7bc14c Mon Sep 17 00:00:00 2001 From: Fabian Blechschmidt Date: Sat, 4 Apr 2020 17:30:00 +0200 Subject: [PATCH] fix api with annoying rewrite --- README.md | 2 +- .../community/Ikonoshirt/Pbkdf2/Model/Api/User.php | 11 +++++++++++ app/code/community/Ikonoshirt/Pbkdf2/etc/config.xml | 6 +++++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 app/code/community/Ikonoshirt/Pbkdf2/Model/Api/User.php diff --git a/README.md b/README.md index ff3e5ef..c8e97b6 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The same problem exists but can not be fixed with the ugly hack. If you have a f ## For Developers -We have overwritten no classes. +We have overwritten only Mage_Api_Model_User, because we need to replace the new functionality in 1.9.4.4. We changed the encryption model in global/helpers/core/encryption_model and use a few events to replaces the passwords after login. This is configurable, have a look at the settings. diff --git a/app/code/community/Ikonoshirt/Pbkdf2/Model/Api/User.php b/app/code/community/Ikonoshirt/Pbkdf2/Model/Api/User.php new file mode 100644 index 0000000..33d6827 --- /dev/null +++ b/app/code/community/Ikonoshirt/Pbkdf2/Model/Api/User.php @@ -0,0 +1,11 @@ +getHash($apiKey); + } +} diff --git a/app/code/community/Ikonoshirt/Pbkdf2/etc/config.xml b/app/code/community/Ikonoshirt/Pbkdf2/etc/config.xml index ee57d9a..4ad472f 100644 --- a/app/code/community/Ikonoshirt/Pbkdf2/etc/config.xml +++ b/app/code/community/Ikonoshirt/Pbkdf2/etc/config.xml @@ -41,6 +41,11 @@ Ikonoshirt_Pbkdf2_Model + + + Ikonoshirt_Pbkdf2_Model_Api_User + + @@ -104,4 +109,3 @@ - \ No newline at end of file