Nathum Posted October 6, 2014 Share Posted October 6, 2014 Hi, I am writing the change password function. However I need to retrieve the current password and new entered password to perform my code. I believe $params['password'] will display the current password until $success is true. What I need to do is provide in my code the new password before successful. function template_ChangePassword($params) { # Code to perform action goes here... if ($successful) { $result = "success"; } else { $result = "Error Message Goes Here..."; } return $result; } Nathum 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 6, 2014 Share Posted October 6, 2014 Hi, How are you handling passwords? Remember that they're hashed. You have to use crypt/decrypt functions. You could use Encrypt and Decrypt API commands too. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.