Skip to content

Commit

Permalink
fix: save store API key in database after encryption (langflow-ai#2866)
Browse files Browse the repository at this point in the history
(cherry picked from commit 922ed59)
  • Loading branch information
ogabrielluiz authored and nicoloboschi committed Jul 30, 2024
1 parent f226b59 commit 9de7c2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/base/langflow/api/v1/api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def save_store_api_key(
# Encrypt the API key
encrypted = auth_utils.encrypt_api_key(api_key, settings_service=settings_service)
current_user.store_api_key = encrypted
db.add(current_user)
db.commit()
return {"detail": "API Key saved"}
except Exception as e:
Expand Down

0 comments on commit 9de7c2a

Please sign in to comment.