Modified - Enabled install-page email notifications by default for fresh setups.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user