You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2024/01/08 08:21:30 UTC

(incubator-answer) branch main updated: fix(dashboard): set default smtp status

This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/main by this push:
     new bdc498ce fix(dashboard): set default smtp status
bdc498ce is described below

commit bdc498ce399c8a70c942e759ad8bf3f474b4b0c4
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Mon Jan 8 16:20:16 2024 +0800

    fix(dashboard): set default smtp status
---
 internal/service/dashboard/dashboard_service.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/internal/service/dashboard/dashboard_service.go b/internal/service/dashboard/dashboard_service.go
index 5d3aa4ed..c9b6efe1 100644
--- a/internal/service/dashboard/dashboard_service.go
+++ b/internal/service/dashboard/dashboard_service.go
@@ -235,6 +235,7 @@ func (ds *dashboardService) remoteVersion(ctx context.Context) string {
 }
 
 func (ds *dashboardService) smtpStatus(ctx context.Context) (smtpStatus string) {
+	smtpStatus = "not_configured"
 	emailConf, err := ds.configService.GetStringValue(ctx, "email.config")
 	if err != nil {
 		log.Errorf("get email config failed: %s", err)