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

pull/4377/head
Bai 2020-07-20 18:49:05 +08:00 committed by 老广
parent 0fca33d874
commit 3e541162e3
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):