News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

decrpyting and recrypting passwords

Started by llegrand, July 28, 2015, 03:52:58 PM

Previous topic - Next topic

llegrand

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

abolabo

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' ");
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -