mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Remove plaintext Fever password from database
This commit is contained in:
parent
93f90dae68
commit
37bc451741
8 changed files with 23 additions and 24 deletions
|
@ -9,8 +9,8 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"miniflux.app/http/response/html"
|
||||
"miniflux.app/http/request"
|
||||
"miniflux.app/http/response/html"
|
||||
"miniflux.app/http/route"
|
||||
"miniflux.app/locale"
|
||||
"miniflux.app/ui/form"
|
||||
|
@ -42,7 +42,9 @@ func (h *handler) updateIntegration(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
if integration.FeverEnabled {
|
||||
integration.FeverToken = fmt.Sprintf("%x", md5.Sum([]byte(integration.FeverUsername+":"+integration.FeverPassword)))
|
||||
if integrationForm.FeverPassword != "" {
|
||||
integration.FeverToken = fmt.Sprintf("%x", md5.Sum([]byte(integration.FeverUsername+":"+integrationForm.FeverPassword)))
|
||||
}
|
||||
} else {
|
||||
integration.FeverToken = ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue