fix: 修复登录系统用户temp_auth保存时构建的key和获取时不一致的问题

pull/7652/head
Jiangjie.Bai 2022-02-18 20:01:06 +08:00 committed by 老广
parent 63de4e1806
commit 3deced4ade
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class SystemUserTempAuthInfoApi(generics.CreateAPIView):
with tmp_to_root_org(): with tmp_to_root_org():
instance = get_object_or_404(SystemUser, pk=pk) 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) return Response(serializer.data, status=201)