Skip to content

Commit

Permalink
Add authorization debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
daya0576 committed Jan 12, 2025
1 parent cc76962 commit 4f43f31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beaverhabits/app/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from nicegui import app

from beaverhabits.app.schemas import UserCreate
from beaverhabits.logging import logger

from .db import User, get_async_session, get_user_db
from .users import get_jwt_strategy, get_user_manager
Expand All @@ -29,6 +30,7 @@ async def user_authenticate(email: str, password: str) -> Optional[User]:
return None
return user
except:
logger.exception("Unkownn Exception")
return None


Expand Down

0 comments on commit 4f43f31

Please sign in to comment.