Jump to content

Password reset and send - admin issue


Basheer

Recommended Posts

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. 

 

whmcs5.PNG.abc2883fc3a249969d56d5c9a4f9ca45.PNG

 

 

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

 

whmcs6.PNG.dd1e95fbd287776c5e42cdbed922a390.PNG

 

Link to comment
Share on other sites

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

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

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

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated