mirror of https://github.com/jumpserver/jumpserver
fix(authentication): 修复用户认证Radius认证中参数传递错误问题 *kwargs -> **kwargs (#4395)
parent
313fbcff3f
commit
3eb877787e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue