prepare('SELECT * FROM admin'); $result = $stmt->execute(); $settings = $result->fetchArray(SQLITE3_ASSOC); // get user accounts $stmt = $db->prepare('SELECT id, username, email FROM user ORDER BY id ASC'); $result = $stmt->execute(); $users = []; while ($row = $result->fetchArray(SQLITE3_ASSOC)) { $users[] = $row; } $userCount = is_array($users) ? count($users) : 0; $loginDisabledAllowed = $userCount == 1 && $settings['registrations_open'] == 0; ?>

/>

By enabling user registrations, the setting to disable login will be unavailable.

/>


/>

= 0) { ?>

/> />