SECURITY: don't echo the "strategy" param returned by auto provider

This commit is contained in:
Sam
2015-01-06 16:28:29 +11:00
parent f2b0115453
commit e6dba8adc2
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class Users::OmniauthCallbacksController < ApplicationController
end
def failure
flash[:error] = I18n.t("login.omniauth_error", strategy: params[:strategy].titleize)
flash[:error] = I18n.t("login.omniauth_error")
render layout: 'no_js'
end