Remove get_session_context setting of host (now read only op as expected). Make session host, ip and user_agent always set (the ua potentially empty string).
This commit is contained in:
@@ -190,9 +190,9 @@ class Session(msgspec.Struct, dict=True):
|
||||
|
||||
user: UUID
|
||||
credential: UUID
|
||||
host: str | None
|
||||
ip: str | None
|
||||
user_agent: str | None
|
||||
host: str
|
||||
ip: str
|
||||
user_agent: str
|
||||
expiry: datetime
|
||||
|
||||
def __post_init__(self):
|
||||
|
||||
Reference in New Issue
Block a user