mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 14:01:14 +08:00
SECURITY: don't echo the "strategy" param returned by auto provider
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user