Add domain constraint validation

This commit is contained in:
2025-04-20 23:31:56 +02:00
parent 054f182215
commit 0fb0d62fb7
5 changed files with 130 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ def get_by_token(
status_code=400,
)
obj = session.exec(select(cls).where(cls.token == token)).first()
obj = session.exec(select(cls).where(cls.token == token)).first() # type: ignore
if obj is None:
raise HTTPException(
detail="Unauthorized",