mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: reduce logging when no external id is specified
Previously we were returning an unknown sso error and logging a message when external id was blank. This noise is not needed.
This commit is contained in:
@ -254,6 +254,10 @@ class SessionController < ApplicationController
|
||||
|
||||
render_sso_error(text: text || I18n.t("sso.unknown_error"), status: 500)
|
||||
|
||||
rescue DiscourseSingleSignOn::BlankExternalId
|
||||
|
||||
render_sso_error(text: I18n.t("sso.blank_id_error"), status: 500)
|
||||
|
||||
rescue => e
|
||||
message = +"Failed to create or lookup user: #{e}."
|
||||
message << " "
|
||||
|
Reference in New Issue
Block a user