Hook + small code change request
Not sure if that's the right category, but here goes.
I want to implement a plugin which makes it so the email addresses of registered users are stored hashed for privacy reasons.
I think I can use action:user.email.confirmed to overwrite the email with its hashed version.
I want to still support password reset and to that end I want to use the hashed provided email to get the uid of the user.
Would it be possible to add a hook for filtering the email provided to getUidByEmail here?
Additionally, in order to use the non-hashed email as the address, it would also require passing the user provided email in params here.
See here for more details.