Skip to content

Bugfix: Apply notify/register mail flags during install load#37120

Merged
wxiaoguang merged 5 commits intogo-gitea:mainfrom
bircni:fix/install-enable-notify-mail-from-ini
Apr 7, 2026
Merged

Bugfix: Apply notify/register mail flags during install load#37120
wxiaoguang merged 5 commits intogo-gitea:mainfrom
bircni:fix/install-enable-notify-mail-from-ini

Conversation

@bircni
Copy link
Copy Markdown
Member

@bircni bircni commented Apr 6, 2026

LoadSettingsForInstall only ran loadMailerFrom, not loadRegisterMailFrom or loadNotifyMailFrom, so Service.RegisterEmailConfirm and Service.EnableNotifyMail were never read from app.ini on the install page.

Full startup runs those through loadMailsFrom; the install path was a narrower subset and never included that step—an oversight from when install-specific loading was added

Fixes #37112

LoadSettingsForInstall now calls loadRegisterMailFrom and loadNotifyMailFrom
after loadMailerFrom so app.ini ENABLE_NOTIFY_MAIL and REGISTER_EMAIL_CONFIRM
populate the install form and match full startup behavior.

Fixes go-gitea#37112
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 6, 2026
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Apr 6, 2026
@bircni bircni changed the title Fix apply notify/register mail flags during install load Apply notify/register mail flags during install load Apr 6, 2026
@bircni bircni changed the title Apply notify/register mail flags during install load Bugfix: Apply notify/register mail flags during install load Apr 6, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 6, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 7, 2026
@wxiaoguang wxiaoguang merged commit adf440a into go-gitea:main Apr 7, 2026
26 checks passed
@GiteaBot GiteaBot added this to the 1.26.0 milestone Apr 7, 2026
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 8, 2026
* main:
  [skip ci] Updated translations via Crowdin
  Fix various problems (go-gitea#37129)
  Add support for RPM Errata (updateinfo.xml) (go-gitea#37125)
  upgrade vite (go-gitea#37126)
  Bugfix: Apply notify/register mail flags during install load (go-gitea#37120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENABLE_NOTIFY_MAIL is ignored

4 participants