<% const body = `

User Management

Create New User
${typeof req !== 'undefined' && req.query.created ? `
User "${req.query.created}" created successfully!
` : ''} ${typeof req !== 'undefined' && req.query.deleted ? `
User deleted successfully.
` : ''} ${typeof req !== 'undefined' && req.query.error ? `
Error: ${req.query.error}
` : ''}
Feudal Authority: Only you can create new user accounts. All users have full administrator privileges over the Luanti server.
${users.length === 0 ? `
👥

No Users Found

This shouldn't happen since you're logged in. Please report this issue.

` : `
${users.map(user => ` `).join('')}
Username Created Last Login Actions
${user.username} ${user.id === 1 ? 'Founder' : ''} ${formatDate(user.created_at)} ${user.last_login ? `${formatDate(user.last_login)}` : 'Never'}
${user.id !== 1 ? `
${typeof csrfToken !== 'undefined' && csrfToken ? `` : ''}
` : ` Protected `}
`}

Authority & Permissions

🏰 Feudal System

This server uses an "implicit feudalism" security model:

  • Only existing administrators can create new accounts
  • The founder account (first user) cannot be deleted
  • All users have equal administrative privileges
  • No public registration - authority must be granted

👑 Administrative Powers

Every user account can:

  • Manage worlds (create, configure, delete)
  • Install and manage mods
  • Browse and install from ContentDB
  • Control the Luanti server (start, stop, restart)
  • Modify server configuration
  • Create additional user accounts
`; %> <%- include('../layout', { body: body, currentPage: 'users', title: title }) %>