mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 10:25:39 +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.