I am looking to catch the event when new user updates password after clicking on link in the email, right after one time login.
I actually want to perform an action right after user sets password after validating/clicking on one time login link in welcome email.
I have gone through this: Is there a hook after user confirmation?
However, it does not solve my problem as explained below:
I used this condition to check if user is just created:
if ($account->uid // user is not new && $account->status === "0" && $edit['status']==1)
The issue with this is it holds usable for me in case if admin approves pending creation. In my case I don't want admin to approve, i want drupal to send email to user for confirmation. According to my workout, when admin approves, then above condition works, because status is changed from 0 to 1 so i can do some work at this change. But without admin, when user creates account, it is automatically activtaed, so I can't grab with this condition to perform my work at this event.