开发者

Magento - modifying a core database

开发者 https://www.devze.com 2023-02-07 17:19 出处:网络
I would like to use a different encryption algorithm than the default md5 algorithm开发者_StackOverflow社区 in Magento and am looking at a good way to implement this.

I would like to use a different encryption algorithm than the default md5 algorithm开发者_StackOverflow社区 in Magento and am looking at a good way to implement this.

Currently I made an extension which features its own encryption class, replacing the Mage_Core_Model_Encryption class in the config. This works succesfully, but there is a small problem. My encryption uses more than the 40 characters allowed for a password in the database.

How would I go and modify this value in a correct way?

Make a setup file in my extension which modifies the admin_user table?

- or -

Overwrite the setup/install file for Mage_Admin_Model_User and modify the table to my needs?

(- or - not what I would like, but the easiest: modify it manually in the database)

I am confused..


The first option - "Make a setup file in my extension" - makes the most sense to me.

Also see how to alter a table without SQL.

0

精彩评论

暂无评论...
验证码 换一张
取 消