Fix #1744 by introducing the token to the Auth Hook payload for Send Email. The tokenHash seems to be already present.
Currently, it's passed into the function as otpNew. Though it is indeed the OTP needed to validate the new email address we place it in the token field to maintain the convention that token_hash_new is only populated when secure email change is enabled
What kind of change does this PR introduce?
Fix #1744 by introducing the token to the Auth Hook payload for Send Email. The tokenHash seems to be already present.
Currently, it's passed into the function as
otpNew
. Though it is indeed the OTP needed to validate the new email address we place it in thetoken
field to maintain the convention thattoken_hash_new
is only populated when secure email change is enabledNew output structure: