# HG changeset patch # User Johannes Bornhold # Date 2016-06-03 13:02:08 # Node ID ad3946282596f6e72605c047528118d4935cb2e8 # Parent 26bb2eb55c8bc2e0bd8fbdeead505f4ab832e0b8 authn: Log a warning message if fallback authentication plugin is enabled in ini file. diff --git a/rhodecode/authentication/registry.py b/rhodecode/authentication/registry.py --- a/rhodecode/authentication/registry.py +++ b/rhodecode/authentication/registry.py @@ -76,8 +76,12 @@ class AuthenticationPluginRegistry(objec plugins.append(plugin) # Add the fallback plugin from ini file. - plugin = self.get_plugin(self._fallback_plugin) - if plugin is not None and plugin not in plugins: - plugins.append(plugin) + if self._fallback_plugin: + log.warn( + 'Using fallback authentication plugin from INI file: "%s"', + plugin.get_id()) + plugin = self.get_plugin(self._fallback_plugin) + if plugin is not None and plugin not in plugins: + plugins.append(plugin) return plugins