mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Merge pull request #679 from mark-rushakoff/remove_param_to_sym
Don't call to_sym on param
This commit is contained in:
commit
ab8196faea
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
|||
def complete
|
||||
# Make sure we support that provider
|
||||
provider = params[:provider]
|
||||
raise Discourse::InvalidAccess.new unless self.class.types.include?(provider.to_sym)
|
||||
raise Discourse::InvalidAccess.new unless self.class.types.keys.map(&:to_s).include?(provider)
|
||||
|
||||
# Check if the provider is enabled
|
||||
raise Discourse::InvalidAccess.new("provider is not enabled") unless SiteSetting.send("enable_#{provider}_logins?")
|
||||
|
|
Loading…
Reference in a new issue