self-service-password icon indicating copy to clipboard operation
self-service-password copied to clipboard

Posthook script arguments

Open N0th1ngmaN opened this issue 6 years ago • 1 comments

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 (?)

N0th1ngmaN avatar Oct 18 '18 14:10 N0th1ngmaN

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

plewin avatar Oct 18 '18 18:10 plewin