<% const body = `

${isFirstUser ? 'Setup Administrator Account' : 'Create Account'}

${isFirstUser ? 'Create the first administrator account for this Luanti server' : 'Join this Luanti server management team' }

${typeof error !== 'undefined' ? `
Error: ${error}
` : ''} ${isFirstUser ? `
First User Setup: You are creating the first administrator account for this server. All users have full admin privileges.
` : ''}
${typeof csrfToken !== 'undefined' && csrfToken ? `` : ''}
3-20 characters, letters, numbers, underscore, or hyphen only
At least 8 characters long
${isFirstUser ? `
Choose the correct Luanti data directory based on your installation method. Directories with ✓ marks have existing Luanti files.

⚠️ Important: Data Directory Selection

The data directory must match where your Luanti installation stores its data:

  • Flatpak: ~/.var/app/org.luanti.luanti/.minetest
  • System Package: ~/.minetest or ~/.luanti
  • Snap: ~/snap/luanti/current/.local/share/minetest

Choosing the wrong directory will prevent the web interface from managing your worlds and server properly.

` : ''}
Already have an account?

${isFirstUser ? 'This will be the primary administrator account.' : 'All accounts have full server administration privileges.' }

`; %> <%- include('../layout', { body: body, currentPage: 'register', title: title }) %>