misc: rename authentication "frontend" to "authenticator" (#14475)

This commit is contained in:
Serghei Mihai 2019-03-06 14:16:23 +01:00
parent 8045695973
commit edc3ffaade
2 changed files with 3 additions and 3 deletions

View File

@ -15,8 +15,8 @@ class Plugin(object):
def get_authentication_backends(self):
return ['authentic2_auth_fc.backends.FcBackend']
def get_auth_frontends(self):
return ['authentic2_auth_fc.auth_frontends.FcFrontend']
def get_authenticators(self):
return ['authentic2_auth_fc.authenticators.FcAuthenticator']
def redirect_logout_list(self, request, **kwargs):
from django.core.urlresolvers import reverse

View File

@ -7,7 +7,7 @@ from authentic2 import app_settings as a2_app_settings, utils as a2_utils
from . import app_settings
class FcFrontend(object):
class FcAuthenticator(object):
def enabled(self):
return app_settings.enable