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:
Sam Saffron
2020-04-08 12:42:28 +10:00
parent 236833ed5d
commit 0375a5ac0b
4 changed files with 35 additions and 27 deletions

View File

@ -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 << " "