MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _trusted_device_lookup

Function _trusted_device_lookup

Scripts/ButSystem.py:1398–1411  ·  view source on GitHub ↗

Return username if token matches a trusted device and is approved.

(fp: str, token: str)

Source from the content-addressed store, hash-verified

1396
1397Internal helper function.
1398
1399This docstring was added automatically to improve maintainability.
1400
1401Args:
1402 exclude: Parameter.
1403 scope: Parameter.
1404
1405Returns:
1406 Varies.
1407"""
1408 sc = scope or "unknown"
1409 cards, _, _ = user_cards(sc, exclude=exclude)
1410 return [(c["username"], bool(c["online"])) for c in cards]
1411
1412# ---------------------------
1413# App / helpers
1414# ---------------------------

Callers 1

Calls 2

_sha256_hexFunction · 0.70
db_connectFunction · 0.70

Tested by

no test coverage detected