FIX: Don't log validation errors for sso

This commit is contained in:
Robin Ward 2016-03-23 13:30:38 -04:00
parent 39863953cd
commit f0552af5f1
2 changed files with 6 additions and 4 deletions

View File

@ -112,6 +112,8 @@ class SessionController < ApplicationController
else else
render text: I18n.t("sso.not_found"), status: 500 render text: I18n.t("sso.not_found"), status: 500
end end
rescue ActiveRecord::RecordInvalid => e
render text: I18n.t("sso.unknown_error"), status: 500
rescue => e rescue => e
details = {} details = {}
SingleSignOn::ACCESSORS.each do |a| SingleSignOn::ACCESSORS.each do |a|

View File

@ -1345,10 +1345,10 @@ en:
user: 'Users' user: 'Users'
sso: sso:
not_found: "Unable to lookup or create account, contact site admin" not_found: "Your account couldn't be found. Please contact the site's administrator."
account_not_approved: "Account is pending approval, you will receive an email notification once approved" account_not_approved: "Your account is pending approval. You will receive an email notification when you are approved."
unknown_error: "Error updating information, contact site admin" unknown_error: "There is a problem with your account. Please contact the site's administrator."
timeout_expired: "Account login timed out, please try logging in again" timeout_expired: "Account login timed out, please try logging in again."
original_poster: "Original Poster" original_poster: "Original Poster"
most_posts: "Most Posts" most_posts: "Most Posts"