Expand description
Operator management for the web admin: create, list, re-password, enable, disable, delete, and the password check the login path runs.
The operation layer, not a front end: no printing, no HTTP, no terminal.
src/cli/webadmin.rs and src/webadmin/handlers/session.rs both dispatch
here, which is what keeps the password policy, the duplicate check and the
rehash-on-login identical between them.
Enums§
- Auth
Outcome - The result of checking a username and password.
- User
Error - Why creating or re-passwording an operator failed.
Functions§
- authenticate
- Checks a username and password, re-hashing the stored digest if it was written under parameters this build has moved past.
- confirm_
delete_ user delete_user, asking first and naming what goes with it.- create_
user - Creates an operator.
- delete_
user - Deletes an operator, cascading to their sessions.
falsewhen there was no such user. - list_
users - One page of the operators, oldest first, plus the total the table holds.
- revoke_
sessions - Revokes every session one operator holds, without touching the account.
Nonewhen there is no such user. - set_
password - Replaces an operator’s password and revokes every session they hold.
- set_
status - Moves an operator between
activeanddisabled.