KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: larryan on May 03, 2010, 05:13:31 pm

Title: change customer's password
Post by: larryan on May 03, 2010, 05:13:31 pm
Hi friends,
I'm new here. We use konakart API in our application. Simple question here: when I register a new customer, the password was encrypted into table, but when customer try to change password, what I did is that get customer id first, then use API method "mgr.setCustomerPassword(cust.getId(), data.get("password"));" to update the password. But the password was not encrypted into the table. Should I encrypt the password myself first? If so, where is the API method I can use?

Please advise
Thanks
Larry
Title: Re: change customer's password
Post by: trevor on May 03, 2010, 07:45:36 pm
The AdminApp API call : public void setCustomerPassword(String sessionId, int custId, String newPassword) should encrypt the password.
Title: Re: change customer's password
Post by: larryan on May 03, 2010, 11:03:05 pm
Quote from: trevor on May 03, 2010, 07:45:36 pm
The AdminApp API call : public void setCustomerPassword(String sessionId, int custId, String newPassword) should encrypt the password.


Hi Trevor, Thank you for quick reply.
The password change was success!
There is another question linked to password. When customer forgot the password I use "kkeng.sendNewPassword1(email, EmailOptionsIf);" where I can pass in name value pairs that can be picked up in the Velocity template. But I don't know how to pick up Velocity template? If I need to create it before, how could I do it?
Please advise.

Thank you for your helps again.
Larry