AbanteCart Community
Shopping Cart Operations => Security => Topic started by: llegrand on July 28, 2015, 03:52:58 PM
-
I find I need to re-do a database that has passwords for accounts - some were using one Salt key, some were using another
I would like to decrypt the passwords and then reset them with all the same salt key. There are a lot of them, and the customers will NOT be happy if they have to do this themselves, lots of really old, crotchety customers on this site - who complain about everything - so would be great if I could get this done behind the scenes.
You have any guidance on doing this?
Thanks
Lee
-
1. you need to know decrypted pass anyway.
2. usually we do reset via sql inside any controller.
for ex.
$this->db->query("UPDATE " . $this->db->table("users") . "
SET password = '" . $this->db->escape(AEncryption::getHash('YOUR_PASSWORD')) . "'
WHERE user_id = 'YOUR_USER_ID' ");