self-service-password
self-service-password copied to clipboard
Posthook script arguments
Morning all,
Any idea how to get the email variable to put it in log from the posthook script? The default action is setted sendtoken. For example: $login, $newpassword and $oldpassword ... $MAIL (?)
Hi @N0th1ngmaN,
Sorry only $login, $newpassword, $oldpassword are supported for now as posthook arguments.
If you are interested in adding $mail as argument of the posthook you should fork / develop a patch, and eventually submit a pull request.
Here is a good place to start in the code to add this feature https://github.com/ltb-project/self-service-password/blob/v1.3/pages/resetbytoken.php#L188