Jump to content

Update customer's password


progproger

Recommended Posts

Hi gyus

 

I want to update customer's password from database...

I am changing "passwd" column in "ps_customer"-s table...

Off course first of all i'm generating it to md5 and then update it.

But after that i just can't login.It tells me that "Authentication failed"...

What should i do?

 

Kind Regards

Link to comment
Share on other sites

Here is the code of the encrypt function :

public static function encrypt($passwd)
{
 return md5(pSQL(_COOKIE_KEY_.$passwd));
}

 

You can see it use md5 funtion but the password is concateneted with the _COOKIE_KEY_ variable which is defined in config/settings.inc.php.

 

So tu update passwords you had to concatenate them with this variable before using the md5 function.

  • Like 1
Link to comment
Share on other sites

Here is the code of the encrypt function :

public static function encrypt($passwd)
{
 return md5(pSQL(_COOKIE_KEY_.$passwd));
}

 

You can see it use md5 funtion but the password is concateneted with the _COOKIE_KEY_ variable which is defined in config/settings.inc.php.

 

So tu update passwords you had to concatenate them with this variable before using the md5 function.

 

 

Thank you so much!

Kind regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...