mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: adapt to SQLModel 16 & SQLAlchemy 2.x
This commit is contained in:
parent
938c3a2349
commit
c8f6aff996
24 changed files with 120 additions and 123 deletions
|
|
@ -96,7 +96,7 @@ async def get_current_user(
|
|||
user = await security_get_user(request, db_session, email=token_data.username) # type: ignore # treated as an email
|
||||
if user is None:
|
||||
raise credentials_exception
|
||||
return PublicUser(**user.dict())
|
||||
return PublicUser(**user.model_dump())
|
||||
else:
|
||||
return AnonymousUser()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue