Basheer Posted October 27, 2017 Share Posted October 27, 2017 Hello There, I(whmcs admin) have used Reset & Send Password button in profile page and system send the mail to customer regarding this changes. But the mail contains wrong information , and can't access the client area with these details. So i checked in several times with different scenario and i found out the problem. The system send the second last password every time. For example : 1: I change the password to 12345 (client profile ->change password ->and save ) 2: change the password to qwert 3: use Reset & Send Password button . i get the mail with 12345 as the password 4: use Reset & Send Password button . i get the mail with qwert as the password Link to comment Share on other sites More sharing options...
brian! Posted October 27, 2017 Share Posted October 27, 2017 1 hour ago, Basheer said: I(whmcs admin) have used Reset & Send Password button in profile page and system send the mail to customer regarding this changes. But the mail contains wrong information , and can't access the client area with these details. So i checked in several times with different scenario and i found out the problem. The system send the second last password every time. https://docs.whmcs.com/Clients:Profile_Tab#Password Quote Clicking this link will instantly generate a new client area password for the client and email it to them. that's what it's doing for me (sending a completely new random password regardless of what I enter into the profile) quickly testing on a v7.2.3 dev using "Six" - which version are you using ? Link to comment Share on other sites More sharing options...
Basheer Posted October 31, 2017 Author Share Posted October 31, 2017 7.1.1 - whmcs version. I think its working fine before. I don't know what happened , any module conflict or something Link to comment Share on other sites More sharing options...
Basheer Posted October 31, 2017 Author Share Posted October 31, 2017 On 10/27/2017 at 11:19 PM, brian! said: https://docs.whmcs.com/Clients:Profile_Tab#Password that's what it's doing for me (sending a completely new random password regardless of what I enter into the profile) quickly testing on a v7.2.3 dev using "Six" - which version are you using ? Can you please try below scenario 1: whmcs admin : reset and send password from profile tab 2: login with these credentials and change password from client area 3: then repeat step 1 4: try login with new credentials you got from email (my problem starts from here) Thanks in advance. Link to comment Share on other sites More sharing options...
brian! Posted October 31, 2017 Share Posted October 31, 2017 I haven't got a v7.1.1 dev to play with, but testing this on both v7.1.2 & v7.2.3 devs, and i'm not running into the problem. it's generating random passwords each time in the emails, and they all work when logging into the client area. (whether logged in as admin or not at the same time). there's no chance of an action hook causing this? Link to comment Share on other sites More sharing options...
Basheer Posted November 1, 2017 Author Share Posted November 1, 2017 17 hours ago, brian! said: it's generating random passwords each time in the emails, and they all work when logging into the client area. (whether logged in as admin or not at the same time). I add an action hook for confirming system send correct password or not. add_hook('ClientChangePassword', 1, function($vars) { $password = $vars['password'];//password mail('muhammed.bashe@example.com','whmcs password','newpassword '.$password); }); I get a different password and can login with this details and e-mail to customer(system mail to client) have different password. Link to comment Share on other sites More sharing options...
brian! Posted November 1, 2017 Share Posted November 1, 2017 when you login as the client, are you already logged in as an admin?? because if you are logged in as an admin, you can enter any password you want when logging into the client area as a client and it will work. Link to comment Share on other sites More sharing options...
Recommended Posts