Expand description
Database access for profiles.
Everything here takes an explicit user_id. There is no ambient “current
user” in this module — the caller has to say who it means, which is what
stops a switch half-applying and writing one profile’s state under another’s
id.
TRACES: UR-082, UR-083 | DR-267, DR-268
Functions§
- clear_
pin - Remove a profile’s PIN, making it a one-tap profile.
- get_pin
- The stored PIN hash and attempt counters, or
Nonewhen no PIN is set. - get_
profile - Fetch a single profile, or
Noneif this device does not know it. - list_
profiles - List every profile known for a server, most recently used first.
- remove_
profile - Forget a profile: its PIN, its per-user rows, and its
usersrow. - save_
pin_ state - Persist the counter state produced by
super::pin::evaluate. - set_pin
- Store (or replace) a profile’s PIN, resetting its counters.