mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 07:17:09 +08:00

If the existing email address for a user ends in `.invalid`, we should take the email address from an authentication payload, and replace the invalid address. This typically happens when we import users from a system without email addresses. This commit also adds some extensibility so that plugin authenticators can define `always_update_user_email?`