diff --git a/apps/authentication/backends/radius.py b/apps/authentication/backends/radius.py index c6ecd9e68..4301e17bf 100644 --- a/apps/authentication/backends/radius.py +++ b/apps/authentication/backends/radius.py @@ -40,10 +40,10 @@ class CreateUserMixin: class RadiusBackend(CreateUserMixin, RADIUSBackend): - def authenticate(self, request, username=None, password=None, **kwargs): + def authenticate(self, request, username='', password='', **kwargs): return super().authenticate(request, username=username, password=password) class RadiusRealmBackend(CreateUserMixin, RADIUSRealmBackend): - def authenticate(self, request, username=None, password=None, realm=None, **kwargs): + def authenticate(self, request, username='', password='', realm=None, **kwargs): return super().authenticate(request, username=username, password=password, realm=realm)