Skip to main content

render_admin_user_detail_text

Function render_admin_user_detail_text 

Source
pub fn render_admin_user_detail_text(
    user: &AdminUser,
    recovery_codes_remaining: i64,
    palette: Palette,
) -> String
Expand description

admin user show <username>, one field per line.

The listing’s twin, split for render_account_detail_text’s reason: the second factor takes the line count past what render_admin_user_line can carry. The factor wording is render_admin_totp_line’s own three states, reused rather than re-spelled – admin user show and admin user totp status describing one factor differently is exactly the confusion the pending state already invites.