fixed up password reminder E-mail generation (and E-mail generation in general)

This commit is contained in:
2025-10-08 14:33:45 -06:00
parent e657e13509
commit 05dc2aa448
7 changed files with 23 additions and 10 deletions
+2
View File
@@ -47,6 +47,7 @@ func (*AmCLI) Version() string {
// AmConfig holds the configuration of the application as read from YAML.
type AmConfig struct {
Site struct {
BaseURL string `yaml:"baseURL"`
Title string `yaml:"title"`
TopRefresh int `yaml:"topRefresh"`
LoginCookieName string `yaml:"loginCookieName"`
@@ -129,6 +130,7 @@ func overlayInt(loaded int, defaulted int) int {
* defaults - Points to the default configuration structure.
*/
func overlayConfig(dest *AmConfig, loaded *AmConfig, defaults *AmConfig) {
dest.Site.BaseURL = overlayString(loaded.Site.BaseURL, defaults.Site.BaseURL)
dest.Site.Title = overlayString(loaded.Site.Title, defaults.Site.Title)
dest.Site.TopRefresh = overlayInt(loaded.Site.TopRefresh, defaults.Site.TopRefresh)
dest.Site.LoginCookieName = overlayString(loaded.Site.LoginCookieName, defaults.Site.LoginCookieName)
+1
View File
@@ -7,6 +7,7 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
site:
baseURL: "http://localhost:1323"
title: "Amsterdam Web Communities System"
topRefresh: 300
loginCookieName: AmsterdamAuth