简体   繁体   中英

How can I import customers from Umbraco CMS to Magento with passwords

I need to import all the customers from Umbraco CMS with uCommerce to Magento store. The problem I have is that Umbraco stores the passwords hashed using HMACSHA-256 algorithm, but Magento uses SHA-256 algorithm.

So, there is no way to retrieve raw passwords from Umbraco, only hashes. The only one idea I have is to change a Magento hash algorithm to the same Umbraco uses. Is that possible?

Did you do something similar? What can you suggest?

As mentioned in the comments, you can't (easily, at least) extract the passwords into plain-text and change over.

One option is to have two separate password columns, legacy and new. Legacy holds the existing HMACSHA-256, and new holds the SHA-256 hash. When a user logs in, check the password against the legacy hash, and if it works run the password they've provided against a SHA-256 hashing method, store it in the new password column. Over time, your users will migrate the passwords over to your new hashing algorithm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM