Skip to main content

Module operators

Module operators 

Source
Expand description

/ui/operators — every operator this process has, and acting on one other than the caller.

crate::webadmin::handlers::operators’s page twin, the handlers/pages split every other resource in this tree follows: both call the same crates/admin/src/admin/ operations, this one renders HTML. Managing yourself stays on /ui/account, which is why GET /ui/operators/{username} redirects there the moment username resolves to the caller rather than rendering a half-disabled copy of this page’s own template.

Structs§

OperatorContactForm
The contact form on the operator card: the address, plus the step-up password hx-include pulls in. A blank address clears it.
OperatorRoleForm
The role form on the operator card.
StepUpForm
The /ui twin of crate::webadmin::handlers::mfa::StepUpRequest — the password a form field collects, pulled in by hx-include, the account::StepUpForm precedent.

Functions§

disable_operator
POST /ui/operators/{username}/disable
enable_operator
POST /ui/operators/{username}/enable
get_operator
GET /ui/operators/{username} — redirects to /ui/account when username is the caller.
list_operators
GET /ui/operators?limit=&offset=
reset_operator_totp
POST /ui/operators/{username}/totp/reset
revoke_operator_session
POST /ui/operators/{username}/sessions/{id}/revoke
set_operator_contact
POST /ui/operators/{username}/contact
set_operator_role
POST /ui/operators/{username}/role