Skip to content

Commit

Permalink
Merge pull request #15 from arthurtabbal/main
Browse files Browse the repository at this point in the history
Encode passwords with urrlib.parse.quote
  • Loading branch information
marceloarocha authored May 23, 2024
2 parents 6d0d012 + b1b9ed8 commit 40d9144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/resources/connections.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from dotenv import load_dotenv
from sqlalchemy import URL, create_engine
from urllib.parse import quote
import os

# Get env variables
Expand All @@ -12,7 +13,7 @@
DATABASE = os.getenv("DB_DATABASE")
PORT = os.getenv("DB_PORT")
USER = os.getenv("DB_USER")
PASS = os.getenv("DB_PASS")
PASS = quote(os.getenv("DB_PASS"))

# Pool parameters
POOL_SIZE = os.getenv("POOL_SIZE")
Expand Down

0 comments on commit 40d9144

Please sign in to comment.