mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 17:52:45 +08:00

allowEmails used to always be set to true and did not use can_invite_via_email, which checks for enable_local_logins. It was a problem because on sites with local logins disabled users were allowed to enter email addresses, but received a generic error "error inviting that user".