We need some modifications to Magento 220.127.116.11:
1. When a customer account is created, username and encrypted password need to be added to a MySQL table.
2. When product(s) are purchased, item(s) SKU needs to be added to a MySQL table.
Stand alone code:
3. PHP code to encrypt a password string so comparison of encrypted password stored in table can be made.
Possible table structures:
User MySQL table:
USERID – auto-increment
Product MySQL table:
PURCHASEID – auto-increment
Should be quick project for someone familiar with Magento code.