mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
1014e56e80
Previously if local login via email was disabled because of the site setting or because SSO was enabled, we were raising a 500 error. We now raise a 403 error instead; we shouldn't raise 500 errors on purpose, instead keeping that code for unhandled errors. It doesn't make sense in the context of what we are validating either to raise a 500.