fix(authentication): 修复用户认证Radius认证中参数传递错误问题 *kwargs -> **kwargs (#4395)

pull/4401/head
BaiJiangJie 2020-07-23 10:56:04 +08:00 committed by GitHub
parent 313fbcff3f
commit 3eb877787e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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):