diff --git a/src/backend/InvenTree/InvenTree/auth_overrides.py b/src/backend/InvenTree/InvenTree/auth_overrides.py index d46097665fb4..3fb92f5a742f 100644 --- a/src/backend/InvenTree/InvenTree/auth_overrides.py +++ b/src/backend/InvenTree/InvenTree/auth_overrides.py @@ -117,7 +117,7 @@ def registration_enabled(): return False -class RegistratonMixin: +class RegistrationMixin: """Mixin to check if registration should be enabled.""" def is_open_for_signup(self, request, *args, **kwargs): @@ -188,7 +188,7 @@ def get_email_confirmation_url(self, request, emailconfirmation): class CustomAccountAdapter( - CustomUrlMixin, RegistratonMixin, OTPAdapter, DefaultAccountAdapter + CustomUrlMixin, RegistrationMixin, OTPAdapter, DefaultAccountAdapter ): """Override of adapter to use dynamic settings.""" @@ -215,7 +215,7 @@ def get_email_confirmation_url(self, request, emailconfirmation): class CustomSocialAccountAdapter( - CustomUrlMixin, RegistratonMixin, DefaultSocialAccountAdapter + CustomUrlMixin, RegistrationMixin, DefaultSocialAccountAdapter ): """Override of adapter to use dynamic settings.""" diff --git a/src/backend/InvenTree/InvenTree/test_auth.py b/src/backend/InvenTree/InvenTree/test_auth.py index bc279fe4a887..10aa5c3e0951 100644 --- a/src/backend/InvenTree/InvenTree/test_auth.py +++ b/src/backend/InvenTree/InvenTree/test_auth.py @@ -10,19 +10,19 @@ from common.models import InvenTreeSetting from InvenTree import sso -from InvenTree.auth_overrides import RegistratonMixin +from InvenTree.auth_overrides import RegistrationMixin from InvenTree.unit_test import InvenTreeAPITestCase class Dummy: - """Simulate super class of RegistratonMixin.""" + """Simulate super class of RegistrationMixin.""" def save_user(self, _request, user: User, *args) -> User: """This method is only used that the super() call of RegistrationMixin does not fail.""" return user -class MockRegistrationMixin(RegistratonMixin, Dummy): +class MockRegistrationMixin(RegistrationMixin, Dummy): """Mocked implementation of the RegistrationMixin."""