Users · Electric Cherry
{#snippet actions()}{#if administrator}{/if}{/snippet} {#if !canViewUsers} Go to your account {:else} {#if error}{/if}{#if notice}

{notice}

{/if}
{#each roles as item}

{item.label}

{item.description}

{/each}
{#if loading}

Loading users…

{:else if !users.length}

No users could be loaded.

{:else}
{#each users as user (user.id)}

{user.displayName} {#if user.id === $page.data.user?.id}You{/if}

@{user.username}

{roles.find((item) => item.value === user.role)?.label ?? user.role}{user.disabled ? 'Disabled' : 'Enabled'}{#if user.mustChangePassword && !user.disabled}Password change required{/if}
{#if administrator}
{/if}
{/each}
{/if}

Account activity

The latest 200 sign-in and account events.

{#if auditError}{/if} {#if auditLoading && !events.length}

Loading account activity…

{:else if !events.length}

No account events recorded.

{:else}
{#each events as event (event.id)}{@const details = auditDetails( event.details )}{/each}
TimeEventByAccountDetails
{actionLabels[event.action] ?? event.action}{event.actor ? `@${event.actor}` : 'Unauthenticated'}{event.targetId ? (users.find((user) => user.id === event.targetId) ?.username ?? event.targetId) : '—'}{#if details}
View details
{details}
{:else}—{/if}
{/if}
{/if}
{#snippet accountPassword(id: string)} {#if rememberedSession}

Confirm your password to make account changes on this remembered device.

{/if} {/snippet} {#if administrator}
{#if formError}{/if}

3–64 characters: letters, numbers, periods, underscores, and hyphens. Start with a letter or number.

{roleDescription}

8–128 characters. Save it before adding the user; it will not be displayed again.

{@render accountPassword('create-current-password')}
{#if formError}{/if}

{roleDescription}

Disabled users cannot sign in. Running game servers continue operating.

{#if editing?.id === $page.data.user?.id}

Use My account to change your own password. Changes to your access can sign you out.

{:else}{#snippet label()}New temporary password (optional){/snippet}

Leave blank to keep the current password. A reset requires the user to choose a new password at their next sign-in.

{/if} {@render accountPassword('edit-current-password')}
{/if}