Skip to main content

render_admin_user_detail_json

Function render_admin_user_detail_json 

Source
pub fn render_admin_user_detail_json(
    user: &AdminUser,
    recovery_codes_remaining: i64,
) -> Value
Expand description

admin user show --json: the listing shape plus the two members that cost a query.

render_order_detail_json’s arrangement, and for its reason. enrolmentPending distinguishes the state a listing cannot show – “enrolment started, never confirmed” behaves exactly like “no factor” at the login prompt, so an operator who believes they enrolled has no other way to find out – and recoveryCodesRemaining is a COUNT on a second table, which a page of fifty operators should not pay fifty times.