mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 11:16:58 +08:00

The error displayed when logging into suspended accounts via SSO never includes the suspension reason, unlike non-SSO logins. By re-using the failed_to_login method when generating the error message for SSO we can ensure the message is consistent between the SSO and non-SSO paths.