diff options
Diffstat (limited to 'ui/integration_update.go')
-rw-r--r-- | ui/integration_update.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/integration_update.go b/ui/integration_update.go index 30f1824f..007239f4 100644 --- a/ui/integration_update.go +++ b/ui/integration_update.go @@ -8,6 +8,7 @@ import ( "fmt" "net/http" + "miniflux.app/crypto" "miniflux.app/http/request" "miniflux.app/http/response/html" "miniflux.app/http/route" @@ -56,11 +57,16 @@ func (h *handler) updateIntegration(w http.ResponseWriter, r *http.Request) { if integration.GoogleReaderEnabled { if integrationForm.GoogleReaderPassword != "" { - integration.GoogleReaderPassword = integrationForm.GoogleReaderPassword + integration.GoogleReaderPassword, err = crypto.HashPassword(integrationForm.GoogleReaderPassword) + if err != nil { + html.ServerError(w, r, err) + return + } } } else { integration.GoogleReaderPassword = "" } + err = h.store.UpdateIntegration(integration) if err != nil { html.ServerError(w, r, err) |