Parcourir la source

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 il y a 6 mois
Parent
révision
969c596d4c
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3
    3
      api/utils/api_utils.py

+ 3
- 3
api/utils/api_utils.py Voir le fichier

@@ -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):

Chargement…
Annuler
Enregistrer