Skip to content

Commit

Permalink
fix: save store API key in database after encryption (#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Jul 22, 2024
1 parent 41143b1 commit 922ed59
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 922ed59

Please sign in to comment.