Skip to content

Commit f78aef1

Browse files
committed
fix api with annoying rewrite
1 parent de209c4 commit f78aef1

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The same problem exists but can not be fixed with the ugly hack. If you have a f
2020

2121
## For Developers
2222

23-
We have overwritten no classes.
23+
We have overwritten only Mage_Api_Model_User, because we need to replace the new functionality in 1.9.4.4.
2424

2525
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.
2626

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
class Ikonoshirt_Pbkdf2_Model_Api_User extends Mage_Api_Model_User
6+
{
7+
protected function _getEncodedApiKey($apiKey)
8+
{
9+
return Mage::helper('core')->getHash($apiKey);
10+
}
11+
}

app/code/community/Ikonoshirt/Pbkdf2/etc/config.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
<ikonoshirt_pbkdf2>
4242
<class>Ikonoshirt_Pbkdf2_Model</class>
4343
</ikonoshirt_pbkdf2>
44+
<api>
45+
<rewrite>
46+
<user>Ikonoshirt_Pbkdf2_Model_Api_User</user>
47+
</rewrite>
48+
</api>
4449
</models>
4550
<resources>
4651
<pbkdf2_setup>
@@ -104,4 +109,3 @@
104109
</suite>
105110
</phpunit>
106111
</config>
107-

0 commit comments

Comments
 (0)