mirror of https://github.com/jumpserver/jumpserver
fix: 修复登录系统用户temp_auth保存时构建的key和获取时不一致的问题
parent
63de4e1806
commit
3deced4ade
|
@ -117,7 +117,7 @@ class SystemUserTempAuthInfoApi(generics.CreateAPIView):
|
|||
|
||||
with tmp_to_root_org():
|
||||
instance = get_object_or_404(SystemUser, pk=pk)
|
||||
instance.set_temp_auth(instance_id, self.request.user, data)
|
||||
instance.set_temp_auth(instance_id, self.request.user.id, data)
|
||||
return Response(serializer.data, status=201)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue