pub enum PinProof {
Pin {
pin: String,
},
Password {
password: String,
},
}Expand description
What proves a PIN change or removal is the user’s (P2-08): the PIN they have, or, when it is forgotten, their account password.
Variants§
Pin
The current PIN, checked as UnlockProfile checks it: a wrong one
counts towards the same limit (InvalidCredentials, then
RateLimited) and the same count of wrong PINs in a row; the 10th
revokes the session on this device (Unauthenticated). Checking it
unlocks nothing. A user with no PIN passes any.
Password
The account password, checked as LoginPassword checks it: a wrong
one is a failed sign-in for this username from this device
(InvalidCredentials, then RateLimited, one limit with
LoginPassword). It never revokes the session and never touches
the PIN’s limit. A user with no password (passkeys or SSO only) gets
NoPassword: the PIN proof, or the web UI, is theirs.