{currentMode === 'single' ? 'No Login' : 'Require Login'}
{currentMode === 'single'
? 'Anyone who opens the app is automatically signed in'
: 'Users must authenticate to access the app'}
{/* Option: Require Login */}
{/* Option: No Login */}
{/* User selector — shown only when No Login is selected */}
{selected === 'single' && (
{regularUsers.length === 0 && (
No regular user accounts found. Create a user account first.
)}
)}
{/* Security note for single mode */}
{selected === 'single' && (
Only use this on trusted private networks. Anyone with access to the URL is signed in automatically.
)}
{isDirty && (
)}
Enable No Login Mode?
Anyone who opens the app will be automatically signed in as{' '}
{pendingUsername}.
The admin login still requires a password.
Cancel { setConfirmSingle(false); doSetMode('single', selectedUser); }}>
Enable No Login Mode
>
);
}