gitea/modules/setting
zeripath f6fd501841
Correct the fallbacks for mailer configuration (#21945)
Unfortunately the fallback configuration code for [mailer] that were
added in #18982 are incorrect. When you read a value from an ini section
that key is added. This leads to a failure of the fallback mechanism.
Further there is also a spelling mistake in the startTLS configuration.

This PR restructures the mailer code to first map the deprecated
settings on to the new ones - and then use ini.MapTo to map those on to
the struct with additional validation as necessary.

Ref #21744

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-11-27 10:08:40 +00:00
..
attachment.go
cache.go
cors.go Add configuration for CORS allowed headers (#21747) 2022-11-11 14:39:27 +08:00
cron_test.go
cron.go
database_sqlite.go
database_test.go
database.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
directory.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
federation.go
git.go
i18n.go
indexer_test.go
indexer.go
lfs.go
log.go
mailer.go Correct the fallbacks for mailer configuration (#21945) 2022-11-27 10:08:40 +00:00
markup.go
migrations.go
mime_type_map.go
mirror.go
oauth2_client.go
packages_test.go Add package registry quota limits (#21584) 2022-11-09 14:34:27 +08:00
packages.go Add package registry quota limits (#21584) 2022-11-09 14:34:27 +08:00
picture.go Add system setting table with cache and also add cache supports for user setting (#18058) 2022-10-17 07:29:26 +08:00
project.go
proxy.go
queue.go
repository.go
service.go Add option to enable CAPTCHA validation for login (#21638) 2022-11-22 21:13:18 +00:00
session.go
setting_test.go
setting.go Correct the fallbacks for mailer configuration (#21945) 2022-11-27 10:08:40 +00:00
storage_test.go
storage.go
task.go
webhook.go