mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
add qunit to autospec
This commit is contained in:
@ -62,16 +62,12 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
BUILTIN_AUTH.each do |authenticator|
|
||||
if authenticator.name == name
|
||||
raise Discourse::InvalidAccess.new("provider is not enabled") unless SiteSetting.send("enable_#{name}_logins?")
|
||||
|
||||
return authenticator
|
||||
end
|
||||
end
|
||||
|
||||
Discourse.auth_providers.each do |provider|
|
||||
if provider.name == name
|
||||
|
||||
return provider.authenticator
|
||||
end
|
||||
return provider.authenticator if provider.name == name
|
||||
end
|
||||
|
||||
raise Discourse::InvalidAccess.new("provider is not found")
|
||||
|
Reference in New Issue
Block a user