package settings

import (
	"os"
	"strings"

	"github.com/rose_cat707/luminary/internal/model"
)

const legacyDefaultEncryptionKey = "change-me-in-production-32bytes!!"

func mergeLegacySettings(s model.SystemSettings) model.SystemSettings {
	if key := strings.TrimSpace(os.Getenv("LUMINARY_ENCRYPTION_KEY")); key != "" {
		s.EncryptionKey = key
	}
	return s
}

// LegacyAdminCredentials returns default bootstrap credentials for first admin.
func LegacyAdminCredentials() (username, password string) {
	return "admin", "admin123"
}
