FIX: Improve email validation error handling for external logins (PR #11307)

  • Display reason for validation error when logging in via an authenticator
  • Fix email validation handling for ‘Discourse SSO’, and add a spec

Previously, validation errors (e.g. blocked or already-taken emails) would raise a generic error with no useful information.

GitHub