Add domain constraint validation
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user