From 3eb877787e7bcf960a7f2fef067836c58183ea8a Mon Sep 17 00:00:00 2001 From: BaiJiangJie <32935519+BaiJiangJie@users.noreply.github.com> Date: Thu, 23 Jul 2020 10:56:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(authentication):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=AE=A4=E8=AF=81Radius=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E4=B8=AD=E5=8F=82=E6=95=B0=E4=BC=A0=E9=80=92=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20*kwargs=20->=20**kwargs=20(#4395)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/backends/radius.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/backends/radius.py b/apps/authentication/backends/radius.py index 6e39b2b79..e45fd8033 100644 --- a/apps/authentication/backends/radius.py +++ b/apps/authentication/backends/radius.py @@ -31,7 +31,7 @@ class CreateUserMixin: # 校验用户时,会传入public_key参数,父类authentication中不接受public_key参数,所以要pop掉 # TODO:需要优化各backend的authenticate方法,django进行调用前会检测各authenticate的参数 kwargs.pop('public_key', None) - return super().authenticate(*args, *kwargs) + return super().authenticate(*args, **kwargs) class RadiusBackend(CreateUserMixin, RADIUSBackend):