diff --git a/logmessages/logmessages.go b/logmessages/logmessages.go index 80fdf71..debd5d4 100644 --- a/logmessages/logmessages.go +++ b/logmessages/logmessages.go @@ -278,7 +278,8 @@ const ( // NOTE: "migrations.go" is the one file where log messages are not part of logmessages/logmessages.go. // pwreset.go - PWRExpired = "PWR for user \"%s\" already expired @ %s, check system time!" + PWRExpired = "PWR for user \"%s\" already expired @ %s, check system time!" + NewPWRForUser = "New password reset for user \"%s\"" // router.go UseDefaultHTML = "Using default HTML \"%s\"" diff --git a/pwreset.go b/pwreset.go index 9fa7053..4b06cbb 100644 --- a/pwreset.go +++ b/pwreset.go @@ -73,7 +73,7 @@ type PasswordReset struct { } func pwrMonitor(app *appContext, watcher *fsnotify.Watcher) { - if !emailEnabled { + if !messagesEnabled { return } for { @@ -94,7 +94,7 @@ func pwrMonitor(app *appContext, watcher *fsnotify.Watcher) { app.debug.Printf(lm.FailedReading, event.Name, err) continue } - app.info.Printf("New password reset for user \"%s\"", pwr.Username) + app.info.Printf(lm.NewPWRForUser, pwr.Username) if currentTime := time.Now(); pwr.Expiry.After(currentTime) { user, err := app.jf.UserByName(pwr.Username, false) if err != nil || user.ID == "" { diff --git a/ts/modules/profiles.ts b/ts/modules/profiles.ts index 1e59d56..863cce8 100644 --- a/ts/modules/profiles.ts +++ b/ts/modules/profiles.ts @@ -358,7 +358,7 @@ export class ProfileEditor { const editor = document.createElement("code-input") as CodeInput; editor.setAttribute("template", "json-highlighted"); editor.setAttribute("language", "json"); - editor.classList.add("rounded-sm"); + editor.classList.add("rounded-md"); editor.value = JSON.stringify(req.response, null, 2); editorContainer.replaceChildren(editor);