Expose email reminder setting through /info
This commit is contained in:
parent
920034faf4
commit
9af89d238b
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue