By aaronmchale on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
9.4.x
Introduced in version:
9.4.0
Issue links:
Description:
The user_pass_rehash() function in user.module now accepts an alternative email address as an optional parameter.
Prior to this change the user_pass_rehash() function only accepted two parameters, the user account and the timestamp.
user_pass_rehash(UserInterface $account, $timestamp)
Now an alternative email address can optionally be provided to the function. If an alternative email address is passed, this will be used instead of the email address stored in the $account object when generating the hash value.
user_pass_rehash(UserInterface $account, $timestamp, $mail = NULL)
Impacts:
Module developers
Site templates, recipes and distribution developers