From 501329a8db950f7e0051ce7bd057040e074e2ecb Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 16 Sep 2020 11:05:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=86=8D=E6=AC=A1=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/backends/radius.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)