Modified - Enabled install-page email notifications by default for fresh setups.
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-container (push) Has been cancelled

This commit is contained in:
2026-05-10 21:29:05 +00:00
parent a59bb9753f
commit fb34e858c1
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -692,3 +692,6 @@ Project Change ID[date-time] - application-version - Type - Summary:
137 - [2026-05-10 19:02:14] - v1.27.0-dev-125-g1525c9c8ee - Type: Added - Added the password visibility toggle to the SMTP password field on the install page.
- 1 - I wrapped the `smtp_passwd` input in `templates/install.tmpl` with the same `js-password-toggle-group` used by login and signup, reusing the existing password-visibility initializer and show/hide labels so the install-page SMTP password field gets the same eye toggle behavior.
138 - [2026-05-10 19:08:32] - v1.27.0-dev-125-g1525c9c8ee - Type: Modified - Enabled install-page email notifications by default for fresh setups.
- 1 - I updated `routers/install/install.go` so the install form defaults `mail_notify` to enabled when there is no existing mailer configuration and notify-mail was still unset, while preserving an explicit existing configuration during reinstall/edit scenarios.
+3
View File
@@ -211,6 +211,9 @@ func Install(ctx *context.Context) {
form.RegisterConfirm = setting.Service.RegisterEmailConfirm
form.RegisterManualConfirm = setting.Service.RegisterManualConfirm
form.MailNotify = setting.Service.EnableNotifyMail
if setting.MailService == nil && !setting.Service.EnableNotifyMail {
form.MailNotify = true
}
form.RegistrationMode = resolveInstallRegistrationMode(setting.Service.DisableRegistration, setting.Service.AllowOnlyInternalRegistration, setting.Service.AllowOnlyExternalRegistration)
form.AdminCreatedAccountMode = setting.Service.AdminCreatedAccountMode