Skip to content

Commit

Permalink
🐛 fix web auth db bind
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Oct 19, 2023
1 parent 6177387 commit 2aba3e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xthulu/web/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
from ..resources import Resources

auth = HTTPBasic()
db = Resources().db


async def login_user(
credentials: Annotated[HTTPBasicCredentials, Depends(auth)]
):
await db.set_bind(db.bind)
db = Resources().db
await db.set_bind(get_config("db.bind"))

try:
user: User | None = await db.one_or_none(
Expand Down

0 comments on commit 2aba3e6

Please sign in to comment.