From 84af6427d8205b1882b9f9df11ce394f96d6b792 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 22 Dec 2025 15:07:55 +0100 Subject: feat(backend): admin dashboard --- backend/config.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'backend/config.go') diff --git a/backend/config.go b/backend/config.go index b221978..33d5852 100644 --- a/backend/config.go +++ b/backend/config.go @@ -29,13 +29,14 @@ type Replacer struct { } type Config struct { - Domain string `toml:"domain"` - Name string `toml:"name"` - Description string `toml:"description"` - DefaultImage string `toml:"default_image"` - Quotes []string `toml:"quotes"` - Language string `toml:"language"` - Database string `toml:"database"` + Domain string `toml:"domain"` + Name string `toml:"name"` + Description string `toml:"description"` + DefaultImage string `toml:"default_image"` + Quotes []string `toml:"quotes"` + Language string `toml:"language"` + Database string `toml:"database"` + AdminPassword string `toml:"admin_password"` Sections []Section `toml:"section"` @@ -75,6 +76,7 @@ func (c *Config) DefaultValues() { c.RootFolder = "data" c.PublicFolder = "public" c.Database = "database.sqlite" + c.AdminPassword = "Ch@ngeM€Please!" c.Quotes = []string{"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do."} c.Replacers = []Replacer{{"~", " "}} } -- cgit v1.2.3