사요자 대시보드 추가
This commit is contained in:
@@ -92,7 +92,7 @@ async def verify_session(request: Request) -> dict[str, Any]:
|
||||
expired = now > row[3] or (now - row[4]).total_seconds() > SESSION_IDLE_TIMEOUT_SECONDS
|
||||
# NO_COMPANY(이메일 인증 완료·회사 미연결)도 로그인 유지 대상. 회사 연결 강제는
|
||||
# require_company 의존성에서 별도 처리한다.
|
||||
if expired or row[10] not in ("ACTIVE", "NO_COMPANY"):
|
||||
if expired or row[10] not in ("ACTIVE", "NO_COMPANY", "PENDING"):
|
||||
await cursor.execute("DELETE FROM sessions WHERE id = %s", (session_id,))
|
||||
await connection.commit()
|
||||
raise HTTPException(status_code=401, detail="세션이 만료되었습니다.")
|
||||
|
||||
Reference in New Issue
Block a user