Skip to content

Commit

Permalink
location -> device location
Browse files Browse the repository at this point in the history
  • Loading branch information
wleightond committed Aug 1, 2024
1 parent 62158fe commit 4193145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion canarytokens/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ class GeolocationPosition(BaseModel):

class PWATokenHit(TokenHit):
token_type: Literal[TokenTypes.PWA] = TokenTypes.PWA
location: Optional[GeolocationPosition]
device_location: Optional[GeolocationPosition]


class CMDTokenHit(TokenHit):
Expand Down
2 changes: 1 addition & 1 deletion canarytokens/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def _get_info_for_pwa(request: Request):
loc_str = request.args.pop(b"loc")[0]
try:
d = json.loads(loc_str)
src_data["location"] = d
src_data["device_location"] = d
except json.decoder.JSONDecodeError:
pass

Expand Down

0 comments on commit 4193145

Please sign in to comment.