summaryrefslogtreecommitdiff
path: root/internal/authentication/file_user_provider.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2020-05-05 17:57:30 +1000
committerGitHub <noreply@github.com>2020-05-05 17:57:30 +1000
commitc13196a86e267298edb3458d3e47918565e3d139 (patch)
tree3fa6692721ea2a4cbf4aff06533104eb91715a16 /internal/authentication/file_user_provider.go
parent87053c93120761639837745a498f7d13b78f7d92 (diff)
[CI] Enable gosec linter (#979)
* fix tee append * convert DB table names from var to const * fixed file modes * ignored gosec where relevant and safe
Diffstat (limited to 'internal/authentication/file_user_provider.go')
-rw-r--r--internal/authentication/file_user_provider.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/authentication/file_user_provider.go b/internal/authentication/file_user_provider.go
index 180854c82..bb6d41d0b 100644
--- a/internal/authentication/file_user_provider.go
+++ b/internal/authentication/file_user_provider.go
@@ -166,7 +166,7 @@ func (p *FileUserProvider) UpdatePassword(username string, newPassword string) e
p.lock.Unlock()
return err
}
- err = ioutil.WriteFile(p.configuration.Path, b, 0644)
+ err = ioutil.WriteFile(p.configuration.Path, b, 0644) //nolint:gosec // Fixed in future PR.
p.lock.Unlock()
return err
}