1
0
Fork 0
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:
Tony Wang 2020-10-07 12:22:24 +08:00 committed by GitHub
parent 93f90dae68
commit 37bc451741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 23 additions and 24 deletions

View file

@ -56,7 +56,6 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
instapaper_password,
fever_enabled,
fever_username,
fever_password,
fever_token,
wallabag_enabled,
wallabag_url,
@ -87,7 +86,6 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
&integration.InstapaperPassword,
&integration.FeverEnabled,
&integration.FeverUsername,
&integration.FeverPassword,
&integration.FeverToken,
&integration.WallabagEnabled,
&integration.WallabagURL,
@ -127,22 +125,21 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
instapaper_password=$7,
fever_enabled=$8,
fever_username=$9,
fever_password=$10,
fever_token=$11,
wallabag_enabled=$12,
wallabag_url=$13,
wallabag_client_id=$14,
wallabag_client_secret=$15,
wallabag_username=$16,
wallabag_password=$17,
nunux_keeper_enabled=$18,
nunux_keeper_url=$19,
nunux_keeper_api_key=$20,
pocket_enabled=$21,
pocket_access_token=$22,
pocket_consumer_key=$23
fever_token=$10,
wallabag_enabled=$11,
wallabag_url=$12,
wallabag_client_id=$13,
wallabag_client_secret=$14,
wallabag_username=$15,
wallabag_password=$16,
nunux_keeper_enabled=$17,
nunux_keeper_url=$18,
nunux_keeper_api_key=$19,
pocket_enabled=$20,
pocket_access_token=$21,
pocket_consumer_key=$22
WHERE
user_id=$24
user_id=$23
`
_, err := s.db.Exec(
query,
@ -155,7 +152,6 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
integration.InstapaperPassword,
integration.FeverEnabled,
integration.FeverUsername,
integration.FeverPassword,
integration.FeverToken,
integration.WallabagEnabled,
integration.WallabagURL,