mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
DEV: Include specific authenticator name in warning message
This commit is contained in:
parent
04baddf731
commit
8d1acbd4c2
@ -506,9 +506,9 @@ JS
|
||||
provider.authenticator.enabled?
|
||||
rescue NotImplementedError
|
||||
provider.authenticator.define_singleton_method(:enabled?) do
|
||||
Rails.logger.warn("Auth::Authenticator subclasses should define an `enabled?` function. Patching for now.")
|
||||
Rails.logger.warn("#{provider.authenticator.class.name} should define an `enabled?` function. Patching for now.")
|
||||
return SiteSetting.send(provider.enabled_setting) if provider.enabled_setting
|
||||
Rails.logger.warn("Plugin::AuthProvider has not defined an enabled_setting. Defaulting to true.")
|
||||
Rails.logger.warn("#{provider.authenticator.class.name} has not defined an enabled_setting. Defaulting to true.")
|
||||
true
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user