浏览代码

Fix: tenant_id spelling error. (#7331)

### What problem does this PR solve?

In the generate_confirmation_token method, a spelling error was found
with 'tenent_id'. The correct spelling should be 'tenant_id'.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):

Co-authored-by: shengliang xiao <shengliangxiao2024@gmail.com>
tags/v0.19.0
xiaosl-cell 6 个月前
父节点
当前提交
969c596d4c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      api/utils/api_utils.py

+ 3
- 3
api/utils/api_utils.py 查看文件

@@ -322,9 +322,9 @@ def get_error_data_result(
return jsonify(response)


def generate_confirmation_token(tenent_id):
serializer = URLSafeTimedSerializer(tenent_id)
return "ragflow-" + serializer.dumps(get_uuid(), salt=tenent_id)[2:34]
def generate_confirmation_token(tenant_id):
serializer = URLSafeTimedSerializer(tenant_id)
return "ragflow-" + serializer.dumps(get_uuid(), salt=tenant_id)[2:34]


def valid(permission, valid_permission, chunk_method, valid_chunk_method):

正在加载...
取消
保存