Expose email reminder setting through /info

This commit is contained in:
kolaente 2020-12-18 21:53:41 +01:00
parent 920034faf4
commit 9af89d238b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,7 @@ type vikunjaInfos struct {
Legal legalInfo `json:"legal"`
CaldavEnabled bool `json:"caldav_enabled"`
AuthInfo authInfo `json:"auth"`
EmailRemindersEnabled bool `json:"email_reminders_enabled"`
}
type authInfo struct {
@ -87,6 +88,7 @@ func Info(c echo.Context) error {
TaskAttachmentsEnabled: config.ServiceEnableTaskAttachments.GetBool(),
TotpEnabled: config.ServiceEnableTotp.GetBool(),
CaldavEnabled: config.ServiceEnableCaldav.GetBool(),
EmailRemindersEnabled: config.ServiceEnableEmailReminders.GetBool(),
Legal: legalInfo{
ImprintURL: config.LegalImprintURL.GetString(),
PrivacyPolicyURL: config.LegalPrivacyURL.GetString(),
@ -108,7 +110,7 @@ func Info(c echo.Context) error {
// No return here to not break /info
}
info.AuthInfo.OpenIDConnect.Providers = providers
info.AuthInfo.OpenIDConnect.Providers = provider
// Migrators
if config.MigrationWunderlistEnable.GetBool() {